Mercurial > libavformat.hg
comparison assdec.c @ 5910:536e5527c1e0 libavformat
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
author | stefano |
---|---|
date | Tue, 30 Mar 2010 23:30:55 +0000 |
parents | da64b6d7a2d9 |
children | 11bb10c37225 |
comparison
equal
deleted
inserted
replaced
5909:b8041f85c327 | 5910:536e5527c1e0 |
---|---|
97 | 97 |
98 st = av_new_stream(s, 0); | 98 st = av_new_stream(s, 0); |
99 if (!st) | 99 if (!st) |
100 return -1; | 100 return -1; |
101 av_set_pts_info(st, 64, 1, 100); | 101 av_set_pts_info(st, 64, 1, 100); |
102 st->codec->codec_type = CODEC_TYPE_SUBTITLE; | 102 st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE; |
103 st->codec->codec_id= CODEC_ID_SSA; | 103 st->codec->codec_id= CODEC_ID_SSA; |
104 | 104 |
105 header_remaining= INT_MAX; | 105 header_remaining= INT_MAX; |
106 dst[0] = &st->codec->extradata; | 106 dst[0] = &st->codec->extradata; |
107 dst[1] = &ass->event_buffer; | 107 dst[1] = &ass->event_buffer; |