ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Oct 30 
23:35:32 2014 +0100| [a1cb8779e2c7a817b44332fd28a0da4ed6011b97] | committer: 
Michael Niedermayer

avcodec/crystalhd: use av_freep() to avoid stale pointers

this leaves some av_free() where the pointer is overwritten
shortly later

Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1cb8779e2c7a817b44332fd28a0da4ed6011b97
---

 libavcodec/crystalhd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index 45b2d46..001afa4 100644
--- a/libavcodec/crystalhd.c
+++ b/libavcodec/crystalhd.c
@@ -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);
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to