[FFmpeg-devel] [PATCH 1/3] dnxhddec: initialize with mb-aligned dimensions
Hendrik Leppkes
h.leppkes at gmail.com
Thu Oct 1 22:34:59 CEST 2015
On Thu, Oct 1, 2015 at 10:01 PM, Christophe Gisquet
<christophe.gisquet at gmail.com> wrote:
> The coded size is a multiple of the macroblock size, which is 16.
> ---
> libavcodec/dnxhddec.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
> index e3dec78..3985318 100644
> --- a/libavcodec/dnxhddec.c
> +++ b/libavcodec/dnxhddec.c
> @@ -87,6 +87,9 @@ static av_cold int dnxhd_decode_init(AVCodecContext *avctx)
> ctx->cid = -1;
> avctx->colorspace = AVCOL_SPC_BT709;
>
> + avctx->coded_width = FFALIGN(avctx->width, 16);
> + avctx->coded_height = FFALIGN(avctx->coded_height, 16);
Intentional that this is not ->height, but ->coded_height?
> +
> ctx->rows = av_mallocz_array(avctx->thread_count, sizeof(RowContext));
> if (!ctx->rows)
> return AVERROR(ENOMEM);
> --
> 2.5.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list