avcodec/crystalhd: use av_freep() to avoid stale pointers
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Oct 2014 22:35:32 +0000 (23:35 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Oct 2014 22:35:32 +0000 (23:35 +0100)
this leaves some av_free() where the pointer is overwritten
shortly later

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/crystalhd.c

index 45b2d46..001afa4 100644 (file)
@@ -362,7 +362,7 @@ static av_cold int uninit(AVCodecContext *avctx)
         av_bitstream_filter_close(priv->bsfc);
     }
 
-    av_free(priv->sps_pps_buf);
+    av_freep(&priv->sps_pps_buf);
 
     av_frame_free (&priv->pic);