From 390b25aeda1e36df54366e1f5e821ecb0147ea54 Mon Sep 17 00:00:00 2001
From: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date: Wed, 28 May 2008 23:56:25 +0000
Subject: [PATCH] set avctx time_base in dv decoder

Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/dv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 71602f5f2c8..c52387aa106 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -1046,6 +1046,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
     s->picture.key_frame = 1;
     s->picture.pict_type = FF_I_TYPE;
     avctx->pix_fmt = s->sys->pix_fmt;
+    avctx->time_base = (AVRational){s->sys->frame_rate_base, s->sys->frame_rate};
     avcodec_set_dimensions(avctx, s->sys->width, s->sys->height);
     if(avctx->get_buffer(avctx, &s->picture) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
-- 
GitLab