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:
parent
7ec05ae969
commit
9579550b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ static void h264_mp4toannexb_filter_close(AVBitStreamFilterContext *bsfc)
|
|||
{
|
||||
H264BSFContext *ctx = bsfc->priv_data;
|
||||
if (ctx->private_spspps)
|
||||
av_free(ctx->spspps_buf);
|
||||
av_freep(&ctx->spspps_buf);
|
||||
}
|
||||
|
||||
AVBitStreamFilter ff_h264_mp4toannexb_bsf = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue