[vlc-commits] demux: ts: handle broken ADTS as LATM
Francois Cartegnie
git at videolan.org
Wed Jun 10 17:36:40 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 10 16:32:48 2020 +0200| [d77d82b4448260c16b2f1b066ddca45c75387c78] | committer: Francois Cartegnie
demux: ts: handle broken ADTS as LATM
refs #24842
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d77d82b4448260c16b2f1b066ddca45c75387c78
---
modules/demux/mpeg/ts_psi.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 5e1a04b458..c93d066629 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -1573,7 +1573,10 @@ static void PIDFillFormat( demux_t *p_demux, ts_stream_t *p_pes,
break;
case 0x11: /* MPEG4 (audio) LATM */
es_format_Change( fmt, AUDIO_ES, VLC_CODEC_MP4A );
- fmt->i_original_fourcc = VLC_FOURCC('L','A','T','M');
+ /* https://trac.ffmpeg.org/ticket/320
+ * Haivision's Makito encoder violates mapping by putting ADTS
+ instead of LOAS, we can only hint that's not raw AAC */
+ fmt->i_original_fourcc = VLC_FOURCC('H','E','A','D');
break;
case 0x1B: /* H264 <- check transport syntax/needed descriptor */
es_format_Change( fmt, VIDEO_ES, VLC_CODEC_H264 );
More information about the vlc-commits
mailing list