]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libopenjpegenc.c
avcodec/svq1dec: Fix undefined shifts
[ffmpeg] / libavcodec / libopenjpegenc.c
index b5c04fd5610fb2b9cf22f5ee1e2e6a233dae57c4..95b0987e1430539c4478be793a2412a05dacbbca 100644 (file)
@@ -250,7 +250,7 @@ static av_cold int libopenjpeg_encode_init(AVCodecContext *avctx)
 fail:
     opj_image_destroy(ctx->image);
     ctx->image = NULL;
-    av_freep(&avctx->coded_frame);
+    av_frame_free(&avctx->coded_frame);
     return err;
 }
 
@@ -605,7 +605,7 @@ static av_cold int libopenjpeg_encode_close(AVCodecContext *avctx)
 
     opj_image_destroy(ctx->image);
     ctx->image = NULL;
-    av_freep(&avctx->coded_frame);
+    av_frame_free(&avctx->coded_frame);
     return 0;
 }