aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-21 20:43:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-21 20:43:21 +0000
commit9ee91c2f53dbc7cc61e65805d57e0a805b5752d7 (patch)
tree8b9419fb7d80a440bacf3d2783b3599648ee1c3d /libavformat/avidec.c
parente8733cc4d9b866643009342ec6839795a059fe53 (diff)
downloadffmpeg-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/avidec.c')
-rw-r--r--libavformat/avidec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 83f68445a1..4f939b365b 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -93,8 +93,6 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
AVIStream *ast;
int xan_video = 0; /* hack to support Xan A/V */
- av_set_pts_info(s, 64, 1, AV_TIME_BASE);
-
if (get_riff(avi, pb) < 0)
return -1;
@@ -139,6 +137,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
st = av_new_stream(s, i);
if (!st)
goto fail;
+ av_set_pts_info(st, 64, 1, AV_TIME_BASE);
+
ast = av_mallocz(sizeof(AVIStream));
if (!ast)
goto fail;