Mercurial > libavformat.hg
diff dv.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 | 6624afe8bf65 |
children | 60f897e8dd2d |
line wrap: on
line diff
--- a/dv.c Thu May 20 16:00:22 2004 +0000 +++ b/dv.c Fri May 21 20:43:21 2004 +0000 @@ -550,6 +550,7 @@ 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 @@ 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 @@ s->ctx_flags |= AVFMTCTX_NOHEADER; - av_set_pts_info(s, 64, 1, 30000); - return c; fail: