summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_mp4toannexb_bsf.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-10-10 00:07:30 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-10-10 01:29:22 +0200
commit3d126ef188639e0b55bdbbb755eafced66f23352 (patch)
tree2ad30618d514141c8e5e03c49932e784cda382ae /libavcodec/h264_mp4toannexb_bsf.c
parent99530387283fc58e6c3ac42724955b8569daf548 (diff)
downloadffmpeg-streaming-3d126ef188639e0b55bdbbb755eafced66f23352.zip
ffmpeg-streaming-3d126ef188639e0b55bdbbb755eafced66f23352.tar.gz
avcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264_mp4toannexb_bsf.c')
-rw-r--r--libavcodec/h264_mp4toannexb_bsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c
index a5da84a..a927bab 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 = {
OpenPOWER on IntegriCloud