You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
set avctx time_base in dv decoder
Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -1046,6 +1046,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
|
|||||||
s->picture.key_frame = 1;
|
s->picture.key_frame = 1;
|
||||||
s->picture.pict_type = FF_I_TYPE;
|
s->picture.pict_type = FF_I_TYPE;
|
||||||
avctx->pix_fmt = s->sys->pix_fmt;
|
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);
|
avcodec_set_dimensions(avctx, s->sys->width, s->sys->height);
|
||||||
if(avctx->get_buffer(avctx, &s->picture) < 0) {
|
if(avctx->get_buffer(avctx, &s->picture) < 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||||
|
Reference in New Issue
Block a user