Revision 83c2bc7a libavformat/mpegtsenc.c

View differences:

libavformat/mpegtsenc.c
869 869
    memcpy(ts_st->payload + ts_st->payload_index, buf, size);
870 870
    ts_st->payload_index += size;
871 871

  
872
    av_free(data);
873

  
872 874
    return 0;
873 875
}
874 876

  
......
888 890
            mpegts_write_pes(s, st, ts_st->payload, ts_st->payload_index,
889 891
                             ts_st->payload_pts, ts_st->payload_dts);
890 892
        }
893
        av_freep(&ts_st->adts);
891 894
    }
892 895
    put_flush_packet(s->pb);
893 896

  

Also available in: Unified diff