[FFmpeg-devel] [PATCH 3/3] avformat/mpegts: include stream types for mpeg2 and aac
Hendrik Leppkes
h.leppkes at gmail.com
Sat Jun 18 12:56:50 CEST 2016
On Tue, Jun 14, 2016 at 8:08 PM, Aman Gupta <ffmpeg at tmm1.net> wrote:
> From: Aman Gupta <aman at tmm1.net>
>
> this removes the need to probe to discover mpeg2 and aac streams
> inside mpegts containers, thus speeding up initial playback.
> ---
> libavformat/mpegts.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index 6acb797..f46984d 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c
> @@ -700,6 +700,7 @@ static const StreamType ISO_types[] = {
> { 0x11, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AAC_LATM }, /* LATM syntax */
> #endif
> { 0x1b, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_H264 },
> + { 0x1c, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AAC },
> { 0x20, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_H264 },
> { 0x21, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_JPEG2000 },
> { 0x24, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_HEVC },
I can see 1c in the latest spec for AAC audio, so thats probably fine.
> @@ -726,6 +727,7 @@ static const StreamType HDMV_types[] = {
>
> /* ATSC ? */
> static const StreamType MISC_types[] = {
> + { 0x80, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_MPEG2VIDEO },
> { 0x81, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AC3 },
> { 0x8a, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
> { 0 },
However, are there any specs that outline this value?
> --
> 2.8.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list