diff flvdec.c @ 462:b69898ffc92a libavformat

move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
author michael
date Fri, 21 May 2004 20:43:21 +0000
parents c1f88671135b
children 0fdc96c2f2fe
line wrap: on
line diff
--- a/flvdec.c	Thu May 20 16:00:22 2004 +0000
+++ b/flvdec.c	Fri May 21 20:43:21 2004 +0000
@@ -48,8 +48,6 @@
     
     s->ctx_flags |= AVFMTCTX_NOHEADER; //ok we have a header but theres no fps, codec type, sample_rate, ...
 
-    av_set_pts_info(s, 24, 1, 1000); /* 24 bit pts in ms */
-
     url_fskip(&s->pb, 4);
     flags = get_byte(&s->pb);
 
@@ -103,6 +101,8 @@
         st = av_new_stream(s, is_audio);
         if (!st)
             return AVERROR_NOMEM;
+
+        av_set_pts_info(st, 24, 1, 1000); /* 24 bit pts in ms */
         st->codec.frame_rate_base= 0;
     }
     break;