diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-30 23:35:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-30 23:35:32 +0100 |
commit | a1cb8779e2c7a817b44332fd28a0da4ed6011b97 (patch) | |
tree | 09b092ef41deef9f1d9d5c55e417642cbf57ad9c /libavcodec/crystalhd.c | |
parent | adfc3b81b1ca190913feb096bd55906fb1ed4da0 (diff) | |
download | ffmpeg-a1cb8779e2c7a817b44332fd28a0da4ed6011b97.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavcodec/crystalhd.c')
-rw-r--r-- | libavcodec/crystalhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index 45b2d46661..001afa4ff4 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); |