Benjamin Larsson <[email protected]> added the comment:
Issue confirmed. Patch attached.
MvH
Benjamin Larsson
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2137>
________________________________________________
Index: libavformat/avidec.c
===================================================================
--- libavformat/avidec.c (revision 24796)
+++ libavformat/avidec.c (working copy)
@@ -587,6 +587,10 @@
/* Force parsing as several audio frames can be in
* one packet and timestamps refer to packet start. */
st->need_parsing = AVSTREAM_PARSE_TIMESTAMPS;
+ if (st->codec->codec_id == CODEC_ID_DTS) {
+ st->need_parsing = AVSTREAM_PARSE_FULL;
+ st->codec->channels = 0;
+ }
/* ADTS header is in extradata, AAC without header must be
* stored as exact frames. Parser not needed and it will
* fail. */