Revision b7f2fdde libavformat/mpegtsenc.c

View differences:

libavformat/mpegtsenc.c
579 579
           service->pcr_packet_period,
580 580
           ts->sdt_packet_period, ts->pat_packet_period);
581 581

  
582
    put_flush_packet(s->pb);
582
    avio_flush(s->pb);
583 583

  
584 584
    return 0;
585 585

  
......
865 865
        payload_size -= len;
866 866
        avio_write(s->pb, buf, TS_PACKET_SIZE);
867 867
    }
868
    put_flush_packet(s->pb);
868
    avio_flush(s->pb);
869 869
}
870 870

  
871 871
static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
......
988 988
        }
989 989
        av_freep(&ts_st->adts);
990 990
    }
991
    put_flush_packet(s->pb);
991
    avio_flush(s->pb);
992 992

  
993 993
    for(i = 0; i < ts->nb_services; i++) {
994 994
        service = ts->services[i];

Also available in: Unified diff