]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libopenjpeg.c
Merge remote branch 'qatar/master'
[ffmpeg] / libavcodec / libopenjpeg.c
index 0a9ded896da49e8de88da5f27bd94c1b02519c4a..39747e78eacf66bb7766561a031eee6dd9c9848c 100644 (file)
@@ -24,7 +24,7 @@
 * JPEG 2000 decoder using libopenjpeg
 */
 
-#include "libavcore/imgutils.h"
+#include "libavutil/imgutils.h"
 #include "avcodec.h"
 #include "libavutil/intreadwrite.h"
 #define  OPJ_STATIC
@@ -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;
 }