[FFmpeg-trac] #11490(avformat:new): [Regression] Audio silent for long MOV file
FFmpeg
trac at avcodec.org
Fri Mar 14 22:48:37 EET 2025
#11490: [Regression] Audio silent for long MOV file
------------------------------------+------------------------------------
Reporter: cgbug | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mov | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 1 |
------------------------------------+------------------------------------
Comment (by cgbug):
This fixes the problem:
In mov_merge_tts_data() change
{{{
if (!sc->sample_count || sc->sample_count >= UINT_MAX /
sizeof(*sc->tts_data))
return -1;
}}}
to
{{{
if (!sc->sample_count || sc->sample_count >= UINT_MAX /
sizeof(*sc->tts_data) && (ctts || stts))
return -1;
}}}
With pcm audio data, the stsz atom contains a fixed nonzero sample_size
and empty sample size table. With very long duration the sample_count can
be so high it triggers the original check when it is not relevant due to
ctts and stts being 0.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11490#comment:9>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list