Skip to content

Commit

Permalink
mpegtsenc: use correct PES stream_id for AAC
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Tony Strauss authored and mansr committed Feb 21, 2011
1 parent 0f86fca commit 6c065f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavformat/mpegtsenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
*q++ = 0xe0;
} else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
(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;
} else {
*q++ = 0xbd;
Expand Down

0 comments on commit 6c065f0

Please sign in to comment.