mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
adfc3b81b1
commit
a1cb8779e2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user