[FFmpeg-cvslog] dv: do not set codec timebase
Anton Khirnov
git at videolan.org
Sun May 18 14:58:03 CEST 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Nov 17 18:42:02 2013 +0100| [79f2c426fde6e71c40b29504112d0528b85be623] | committer: Anton Khirnov
dv: do not set codec timebase
It is not supposed to be set from outside of libavcodec.
Set average framerate instead.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79f2c426fde6e71c40b29504112d0528b85be623
---
libavformat/dv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 5a1261a..2181405 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -277,7 +277,7 @@ static int dv_extract_video_info(DVDemuxContext *c, uint8_t *frame)
avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num,
c->sys->time_base.den);
- avctx->time_base = c->sys->time_base;
+ c->vst->avg_frame_rate = av_inv_q(c->vst->time_base);
if (!avctx->width) {
avctx->width = c->sys->width;
avctx->height = c->sys->height;
More information about the ffmpeg-cvslog
mailing list