comparison mpegts.c @ 5981:c1cd2ffd5cdc libavformat

Disable LATM AAC in mpegts, this is not supported and produce too many bug reports. Also warn the user about it.
author bcoudurier
date Thu, 22 Apr 2010 20:34:30 +0000
parents 536e5527c1e0
children f74198942337
comparison
equal deleted inserted replaced
5980:b32c7be57669 5981:c1cd2ffd5cdc
495 { 0x02, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG2VIDEO }, 495 { 0x02, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG2VIDEO },
496 { 0x03, AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3 }, 496 { 0x03, AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3 },
497 { 0x04, AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3 }, 497 { 0x04, AVMEDIA_TYPE_AUDIO, CODEC_ID_MP3 },
498 { 0x0f, AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC }, 498 { 0x0f, AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC },
499 { 0x10, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG4 }, 499 { 0x10, AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG4 },
500 { 0x11, AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC }, /* LATM syntax */ 500 //{ 0x11, AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC }, /* LATM syntax */
501 { 0x1b, AVMEDIA_TYPE_VIDEO, CODEC_ID_H264 }, 501 { 0x1b, AVMEDIA_TYPE_VIDEO, CODEC_ID_H264 },
502 { 0xd1, AVMEDIA_TYPE_VIDEO, CODEC_ID_DIRAC }, 502 { 0xd1, AVMEDIA_TYPE_VIDEO, CODEC_ID_DIRAC },
503 { 0xea, AVMEDIA_TYPE_VIDEO, CODEC_ID_VC1 }, 503 { 0xea, AVMEDIA_TYPE_VIDEO, CODEC_ID_VC1 },
504 { 0 }, 504 { 0 },
505 }; 505 };
592 sub_st->codec->codec_id = CODEC_ID_AC3; 592 sub_st->codec->codec_id = CODEC_ID_AC3;
593 sub_st->need_parsing = AVSTREAM_PARSE_FULL; 593 sub_st->need_parsing = AVSTREAM_PARSE_FULL;
594 sub_pes->sub_st = pes->sub_st = sub_st; 594 sub_pes->sub_st = pes->sub_st = sub_st;
595 } 595 }
596 } 596 }
597 if (pes->stream_type == 0x11)
598 av_log(pes->stream, AV_LOG_WARNING,
599 "AAC LATM not currently supported, patch welcome\n");
597 if (st->codec->codec_id == CODEC_ID_NONE) 600 if (st->codec->codec_id == CODEC_ID_NONE)
598 mpegts_find_stream_type(st, pes->stream_type, MISC_types); 601 mpegts_find_stream_type(st, pes->stream_type, MISC_types);
599 602
600 return 0; 603 return 0;
601 } 604 }