aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-07 21:32:52 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-08 00:02:47 +0200
commit7030501383ec630207f9a14c1448bcfc265499f9 (patch)
tree14b6e422874a67d17d5ef78db0e031232c93ba52
parentb06397acd458abc1fa73cf23b20de5b17253f283 (diff)
downloadffmpeg-7030501383ec630207f9a14c1448bcfc265499f9.tar.gz
libopenjpeg: set internal frame defaults
Fix ffmpeg decoding, which was broken after the recent changes in vsrc_buffer.
-rw-r--r--libavcodec/libopenjpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libopenjpeg.c b/libavcodec/libopenjpeg.c
index 1f8530c7c6..39747e78ea 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;
}