[FFmpeg-cvslog] libopenjpeg: set internal frame defaults
Stefano Sabatini
git at videolan.org
Sun May 8 00:08:20 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sat May 7 21:32:52 2011 +0200| [7030501383ec630207f9a14c1448bcfc265499f9] | committer: Stefano Sabatini
libopenjpeg: set internal frame defaults
Fix ffmpeg decoding, which was broken after the recent changes in
vsrc_buffer.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7030501383ec630207f9a14c1448bcfc265499f9
---
libavcodec/libopenjpeg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libopenjpeg.c b/libavcodec/libopenjpeg.c
index 1f8530c..39747e7 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;
}
More information about the ffmpeg-cvslog
mailing list