[FFmpeg-cvslog] avcodec/crystalhd: use av_freep() to avoid stale pointers
Michael Niedermayer
git at videolan.org
Fri Oct 31 00:06:15 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>
> 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);
More information about the ffmpeg-cvslog
mailing list