Commit 70305013 authored by Stefano Sabatini's avatar Stefano Sabatini

libopenjpeg: set internal frame defaults

Fix ffmpeg decoding, which was broken after the recent changes in
vsrc_buffer.
parent b06397ac
...@@ -53,6 +53,7 @@ static av_cold int libopenjpeg_decode_init(AVCodecContext *avctx) ...@@ -53,6 +53,7 @@ static av_cold int libopenjpeg_decode_init(AVCodecContext *avctx)
LibOpenJPEGContext *ctx = avctx->priv_data; LibOpenJPEGContext *ctx = avctx->priv_data;
opj_set_default_decoder_parameters(&ctx->dec_params); opj_set_default_decoder_parameters(&ctx->dec_params);
avcodec_get_frame_defaults(&ctx->image);
avctx->coded_frame = &ctx->image; avctx->coded_frame = &ctx->image;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment