Revision 24ac5052

View differences:

libavformat/mpegtsenc.c
741 741
        st->codec->codec_type == CODEC_TYPE_VIDEO) {
742 742
        // for video and subtitle, write a single pes packet
743 743
        mpegts_write_pes(s, st, buf, size, pts, dts);
744
        av_free(data);
744 745
        return 0;
745 746
    }
746 747

  
......
769 770
        }
770 771
    }
771 772

  
772
    av_free(data);
773

  
774 773
    return 0;
775 774
}
776 775

  

Also available in: Unified diff