OSDN Git Service

avcodec/libutvideodec: free coded_frame with av_frame_free() instead if av_free*
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Dec 2013 23:52:12 +0000 (00:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Dec 2013 00:11:32 +0000 (01:11 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libutvideodec.cpp

index 8e6b691..60dbd15 100644 (file)
@@ -174,7 +174,7 @@ static av_cold int utvideo_decode_close(AVCodecContext *avctx)
     UtVideoContext *utv = (UtVideoContext *)avctx->priv_data;
 
     /* Free output */
-    av_freep(&avctx->coded_frame);
+    av_frame_free(&avctx->coded_frame);
     av_freep(&utv->buffer);
 
     /* Finish decoding and clean up the instance */