From 7030501383ec630207f9a14c1448bcfc265499f9 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 7 May 2011 21:32:52 +0200 Subject: [PATCH] libopenjpeg: set internal frame defaults Fix ffmpeg decoding, which was broken after the recent changes in vsrc_buffer. --- libavcodec/libopenjpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libopenjpeg.c b/libavcodec/libopenjpeg.c index 1f8530c7c..39747e78e 100644 --- a/libavcodec/libopenjpeg.c +++ b/libavcodec/libopenjpeg.c @@ -53,6 +53,7 @@ static av_cold int libopenjpeg_decode_init(AVCodecContext *avctx) LibOpenJPEGContext *ctx = avctx->priv_data; opj_set_default_decoder_parameters(&ctx->dec_params); + avcodec_get_frame_defaults(&ctx->image); avctx->coded_frame = &ctx->image; return 0; } -- 2.11.0