diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-10 00:07:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-12 02:23:36 +0200 |
commit | 9579550b2b868b0360131c3e042a1d385efc91c4 (patch) | |
tree | d1d77215a7dade4b24aaa3da88162576c12e1eff | |
parent | 7ec05ae96912939bb5a0848b3192e3f30ceeb08e (diff) | |
download | ffmpeg-9579550b2b868b0360131c3e042a1d385efc91c4.tar.gz |
avcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3d126ef188639e0b55bdbbb755eafced66f23352)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/h264_mp4toannexb_bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c index a5da84a7af..a927bab3f8 100644 --- a/libavcodec/h264_mp4toannexb_bsf.c +++ b/libavcodec/h264_mp4toannexb_bsf.c @@ -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 = { |