mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libopenjpeg: set internal frame defaults
Fix ffmpeg decoding, which was broken after the recent changes in vsrc_buffer.
This commit is contained in:
parent
b06397acd4
commit
7030501383
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user