Commit a1cb8779 authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent adfc3b81
...@@ -362,7 +362,7 @@ static av_cold int uninit(AVCodecContext *avctx) ...@@ -362,7 +362,7 @@ static av_cold int uninit(AVCodecContext *avctx)
av_bitstream_filter_close(priv->bsfc); av_bitstream_filter_close(priv->bsfc);
} }
av_free(priv->sps_pps_buf); av_freep(&priv->sps_pps_buf);
av_frame_free (&priv->pic); av_frame_free (&priv->pic);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment