Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-31 01:35:32 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-10-31 01:35:32 +0300
commita1cb8779e2c7a817b44332fd28a0da4ed6011b97 (patch)
tree09b092ef41deef9f1d9d5c55e417642cbf57ad9c /libavcodec/crystalhd.c
parentadfc3b81b1ca190913feb096bd55906fb1ed4da0 (diff)
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.c2
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);