[FFmpeg-trac] #11452(avcodec:new): AAC audio track does not play in ffplay

FFmpeg trac at avcodec.org
Mon Jun 16 19:27:37 EEST 2025


#11452: AAC audio track does not play in ffplay
--------------------------------+-----------------------------------
             Reporter:  v0lt    |                    Owner:  (none)
                 Type:  defect  |                   Status:  new
             Priority:  normal  |                Component:  avcodec
              Version:  7.1     |               Resolution:
             Keywords:  aac     |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+-----------------------------------
Comment (by Nicolas Gaullier):

 I don't know if there are more significant issues, but the first errors
 are pretty serious:
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f0fb0000c80] STSC entry 4 is invalid
 (first=4 count=19 id=1)
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f0fb0000c80] STSC entry 3 is invalid
 (first=3 count=18 id=1)
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f0fb0000c80] STSC entry 2 is invalid
 (first=2 count=19 id=1)

 A dump makes it clear the stsc is broken:
 <SampleToChunkBox Size="2164" Type="stsc" Version="0" Flags="0"
 Specification="p12" Container="stbl" EntryCount="179">
 <SampleToChunkEntry FirstChunk="1" SamplesPerChunk="27"
 SampleDescriptionIndex="1"/>
 <SampleToChunkEntry FirstChunk="2" SamplesPerChunk="19"
 SampleDescriptionIndex="1"/>
 <SampleToChunkEntry FirstChunk="2" SamplesPerChunk="19"
 SampleDescriptionIndex="1"/>
 <SampleToChunkEntry FirstChunk="3" SamplesPerChunk="18"
 SampleDescriptionIndex="1"/>

 The second entry is repeated twice.
 Never seen that before, very specific... Here it seems clear that the
 entry is doubled and the second one can be ignored, of course, but really
 this is not a clean patch nor a safe hack to support that kind of
 corrupted files in a general manner.
 BTW, be careful with corrupted files 'supported' by some systems one day;
 they may not be supported another day.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11452#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list