diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-05-21 20:43:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-05-21 20:43:21 +0000 |
commit | 9ee91c2f53dbc7cc61e65805d57e0a805b5752d7 (patch) | |
tree | 8b9419fb7d80a440bacf3d2783b3599648ee1c3d /libavformat/flvenc.c | |
parent | e8733cc4d9b866643009342ec6839795a059fe53 (diff) | |
download | ffmpeg-9ee91c2f53dbc7cc61e65805d57e0a805b5752d7.tar.gz |
move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
Originally committed as revision 3148 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index e4121c2d32..a44ebd966d 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -134,8 +134,6 @@ static int flv_write_header(AVFormatContext *s) FLVContext *flv = s->priv_data; int i; - av_set_pts_info(s, 24, 1, 1000); /* 24 bit pts in ms */ - flv->hasAudio = 0; flv->hasVideo = 0; @@ -151,6 +149,7 @@ static int flv_write_header(AVFormatContext *s) for(i=0; i<s->nb_streams; i++){ AVCodecContext *enc = &s->streams[i]->codec; + av_set_pts_info(s->streams[i], 24, 1, 1000); /* 24 bit pts in ms */ if(enc->codec_tag == 5){ put_byte(pb,8); // message type put_be24(pb,0); // include flags |