front-end/build/ffmpeg/libavformat/mpegtsenc.c
/* Write a single null transport stream packet */
Write a single null transport stream packet
Write a single null transport stream packet
static void mpegts_insert_null_packet(AVFormatContext *s)
{
    uint8_t *q;
    uint8_t buf[TS_PACKET_SIZE];
    q = buf;
    *q++ = 0x47;
    *q++ = 0x00 | 0x1f;
    *q++ = 0xff;
    *q++ = 0x10;
    memset(q, 0x0FF, TS_PACKET_SIZE - (q - buf));
    mpegts_prefix_m2ts_header(s);
    avio_write(s->pb, buf, TS_PACKET_SIZE);
}
static void mpegts_insert_null_packet ( AVFormatContext * s ) { uint8_t * q ; uint8_t buf [ TS_PACKET_SIZE ] ; q = buf ; * q ++ = 0x47 ; * q ++ = 0x00 | 0x1f ; * q ++ = 0xff ; * q ++ = 0x10 ; memset ( q , 0x0FF , TS_PACKET_SIZE - ( q - buf ) ) ; mpegts_prefix_m2ts_header ( s ) ; avio_write ( s -> pb , buf , TS_PACKET_SIZE ) ; }
Write a single null transport stream packet
Write a single null transport stream packet