1
0
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:
Michael Niedermayer 2014-10-30 23:35:32 +01:00
parent adfc3b81b1
commit a1cb8779e2

View File

@ -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);