1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-02 14:33:23 +02:00

avformat/mpegtsenc: Use av_freep() for pids

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-07 23:04:32 +02:00
parent 31eaecfee9
commit 92a28e9f56

View File

@ -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;