Revision dcd913d9 libavformat/mpegts.c

View differences:

libavformat/mpegts.c
334 334
    pid = filter->pid;
335 335
    if (filter->type == MPEGTS_SECTION)
336 336
        av_freep(&filter->u.section_filter.section_buf);
337
    else if (filter->type == MPEGTS_PES) {
338
        /* referenced private data will be freed later in
339
         * av_close_input_stream */
340
        if (!((PESContext *)filter->u.pes_filter.opaque)->st) {
341
            av_freep(&filter->u.pes_filter.opaque);
342
        }
343
    }
337 344

  
338 345
    av_free(filter);
339 346
    ts->pids[pid] = NULL;

Also available in: Unified diff