[FFmpeg-cvslog] GOL-1361: Remove invalid CTTS sample_offset check
ekir
git at videolan.org
Wed Feb 26 16:18:44 EET 2025
ffmpeg | branch: master | ekir <ekir at spotify.com> | Tue Apr 18 17:31:43 2023 +0200| [da5353cf05bcbe2fc47e69321178a2f7ae64a4f3] | committer: Tomas Härdin
GOL-1361: Remove invalid CTTS sample_offset check
We checked in this places:
* In 8.6.1.3 of ISO/IEC 14496-12 about the CTTS box
* In Apples MOV spec: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-SW19
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da5353cf05bcbe2fc47e69321178a2f7ae64a4f3
---
libavformat/mov.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 15c840d164..ee44b10435 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3703,13 +3703,6 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
av_log(c->fc, AV_LOG_TRACE, "count=%d, duration=%d\n",
count, duration);
- if (FFNABS(duration) < -(1<<28) && i+2<entries) {
- av_log(c->fc, AV_LOG_WARNING, "CTTS invalid\n");
- av_freep(&sc->ctts_data);
- sc->ctts_count = 0;
- return 0;
- }
-
if (i+2<entries)
mov_update_dts_shift(sc, duration, c->fc);
}
More information about the ffmpeg-cvslog
mailing list