aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dv.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/dv.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/dv.c')
-rw-r--r--libavformat/dv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 4815674122..ec87068a9f 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -550,6 +550,7 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
if (c->ach == 2 && !c->ast[1]) {
c->ast[1] = av_new_stream(c->fctx, 0);
if (c->ast[1]) {
+ av_set_pts_info(c->ast[1], 64, 1, 30000);
c->ast[1]->codec.codec_type = CODEC_TYPE_AUDIO;
c->ast[1]->codec.codec_id = CODEC_ID_PCM_S16LE;
} else
@@ -721,6 +722,9 @@ DVDemuxContext* dv_init_demux(AVFormatContext *s)
c->ast[0] = av_new_stream(s, 0);
if (!c->vst || !c->ast[0])
goto fail;
+ av_set_pts_info(c->vst, 64, 1, 30000);
+ av_set_pts_info(c->ast[0], 64, 1, 30000);
+
c->fctx = s;
c->ast[1] = NULL;
c->ach = 0;
@@ -738,8 +742,6 @@ DVDemuxContext* dv_init_demux(AVFormatContext *s)
s->ctx_flags |= AVFMTCTX_NOHEADER;
- av_set_pts_info(s, 64, 1, 30000);
-
return c;
fail: