mirror of https://git.ffmpeg.org/ffmpeg.git
lavf/mpegtsenc: add special case for handling timed ID3 packets
Set the stream_id to 0xbd (private_stream_id_1). Tools seem to assume that value, and this is consistent with MPEG TS specification (ITU-T H.222.0 section 2.12.3).
This commit is contained in:
parent
286368099a
commit
156b5bb9bf
|
@ -1238,6 +1238,9 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
|
|||
st->codecpar->codec_id == AV_CODEC_ID_AC3 &&
|
||||
ts->m2ts_mode) {
|
||||
*q++ = 0xfd;
|
||||
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA &&
|
||||
st->codecpar->codec_id == AV_CODEC_ID_TIMED_ID3) {
|
||||
*q++ = 0xbd;
|
||||
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) {
|
||||
*q++ = stream_id != -1 ? stream_id : 0xfc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue