Mercurial > libavformat.hg
comparison nut.c @ 3112:88e032ac11e7 libavformat
Subtitle support. (untested)
author | michael |
---|---|
date | Wed, 05 Mar 2008 13:06:49 +0000 |
parents | 0439b354e005 |
children | ea5623a8efde |
comparison
equal
deleted
inserted
replaced
3111:6f505b24ed57 | 3112:88e032ac11e7 |
---|---|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 #include "nut.h" | 22 #include "nut.h" |
23 #include "tree.h" | 23 #include "tree.h" |
24 | |
25 const AVCodecTag ff_nut_subtitle_tags[] = { | |
26 { CODEC_ID_TEXT , MKTAG('U', 'T', 'F', '8') }, | |
27 { CODEC_ID_SSA , MKTAG('S', 'S', 'A', 0 ) }, | |
28 { CODEC_ID_DVD_SUBTITLE, MKTAG('D', 'V', 'D', 'S') }, | |
29 { CODEC_ID_DVB_SUBTITLE, MKTAG('D', 'V', 'B', 'S') }, | |
30 { CODEC_ID_NONE , 0 } | |
31 }; | |
24 | 32 |
25 void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){ | 33 void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val){ |
26 int i; | 34 int i; |
27 for(i=0; i<nut->avf->nb_streams; i++){ | 35 for(i=0; i<nut->avf->nb_streams; i++){ |
28 nut->stream[i].last_pts= av_rescale_rnd( | 36 nut->stream[i].last_pts= av_rescale_rnd( |