Browse Source

set avctx time_base in dv decoder

Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 17 years ago
parent
commit
390b25aeda
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/dv.c

+ 1
- 0
libavcodec/dv.c View 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");


Loading…
Cancel
Save