mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-28 16:02:17 +02:00
mpegtsenc: use correct PES stream_id for AAC
This adds the AAC codec to the list of audio codecs that results
in a PES stream_id of 0xc0 (audio stream).
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 6c065f0acd
)
This commit is contained in:
parent
51e7c932da
commit
352cb0da90
@ -746,7 +746,8 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
|
|||||||
*q++ = 0xe0;
|
*q++ = 0xe0;
|
||||||
} else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
|
} else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
|
||||||
(st->codec->codec_id == CODEC_ID_MP2 ||
|
(st->codec->codec_id == CODEC_ID_MP2 ||
|
||||||
st->codec->codec_id == CODEC_ID_MP3)) {
|
st->codec->codec_id == CODEC_ID_MP3 ||
|
||||||
|
st->codec->codec_id == CODEC_ID_AAC)) {
|
||||||
*q++ = 0xc0;
|
*q++ = 0xc0;
|
||||||
} else {
|
} else {
|
||||||
*q++ = 0xbd;
|
*q++ = 0xbd;
|
||||||
|
Loading…
Reference in New Issue
Block a user