diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-07 23:04:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-07 23:04:32 +0200 |
commit | 92a28e9f562124732fa27f0c62118f15a6fee239 (patch) | |
tree | 4a39060d3c3f65909b484997848415f6e22cd4dc /libavformat | |
parent | 31eaecfee9d84381945f3d5201775b9b00161d7a (diff) | |
download | ffmpeg-92a28e9f562124732fa27f0c62118f15a6fee239.tar.gz |
avformat/mpegtsenc: Use av_freep() for pids
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegtsenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 4c5e289f1c..6ae2391480 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -710,7 +710,7 @@ static int mpegts_write_header(AVFormatContext *s) } } - av_free(pids); + av_freep(&pids); /* if no video stream, use the first stream as PCR */ if (service->pcr_pid == 0x1fff && s->nb_streams > 0) { @@ -778,7 +778,7 @@ static int mpegts_write_header(AVFormatContext *s) return 0; fail: - av_free(pids); + av_freep(&pids); for (i = 0; i < s->nb_streams; i++) { st = s->streams[i]; ts_st = st->priv_data; |