set avctx time_base in dv decoder
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 28 May 2008 23:56:25 +0000 (23:56 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 28 May 2008 23:56:25 +0000 (23:56 +0000)
Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dv.c

index 71602f5..c52387a 100644 (file)
@@ -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");