History

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

ekir committed 3 years ago

Commit da5353c1 parent 98d97bb1 file · +0 −7Browse files

Unified · Split

libavformat/mov.c+0−7
@@ -3703,13 +3703,6 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 3702 unmodified lines
37033703 av_log(c->fc, AV_LOG_TRACE, "count=%d, duration=%d\n",
37043704 count, duration);
37053705
3706− if (FFNABS(duration) < -(1<<28) && i+2<entries) {
3707− av_log(c->fc, AV_LOG_WARNING, "CTTS invalid\n");
3708− av_freep(&sc->ctts_data);
3709− sc->ctts_count = 0;
3710− return 0;
3711− }
3712−
37133706 if (i+2<entries)
37143707 mov_update_dts_shift(sc, duration, c->fc);
37153708 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t