#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
_______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org https://ffmpeg.org/mailman/listinfo/ffmpeg-trac To unsubscribe, visit link above, or email ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".