From 9ee91c2f53dbc7cc61e65805d57e0a805b5752d7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 May 2004 20:43:21 +0000 Subject: move time_base (pts_num/pts_den) from AVFormatContext -> AVStream Originally committed as revision 3148 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavformat/flvenc.c') 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; inb_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 -- cgit v1.2.3