You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-05-16 08:38:24 +02:00
avcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3d126ef188)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -276,7 +276,7 @@ static void h264_mp4toannexb_filter_close(AVBitStreamFilterContext *bsfc)
|
|||||||
{
|
{
|
||||||
H264BSFContext *ctx = bsfc->priv_data;
|
H264BSFContext *ctx = bsfc->priv_data;
|
||||||
if (ctx->private_spspps)
|
if (ctx->private_spspps)
|
||||||
av_free(ctx->spspps_buf);
|
av_freep(&ctx->spspps_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVBitStreamFilter ff_h264_mp4toannexb_bsf = {
|
AVBitStreamFilter ff_h264_mp4toannexb_bsf = {
|
||||||
|
|||||||
Reference in New Issue
Block a user