set avctx time_base in dv decoder
Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
12701f6e31
commit
390b25aeda
@ -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…
x
Reference in New Issue
Block a user