diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index a749b8964f..b1b276a005 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mmaldec.c @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -277,6 +278,9 @@ static int ffmal_update_format(AVCodecContext *avctx) if ((status = mmal_port_parameter_set_uint32(decoder->output[0], MMAL_PARAMETER_EXTRA_BUFFERS, ctx->extra_buffers))) goto fail; + if ((status = mmal_port_parameter_set_boolean(decoder->output[0], MMAL_PARAMETER_VIDEO_INTERPOLATE_TIMESTAMPS, 0))) + goto fail; + if (avctx->pix_fmt == AV_PIX_FMT_MMAL) { format_out->encoding = MMAL_ENCODING_OPAQUE; } else {