summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-01-06 23:24:49 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-01-28 21:08:35 +0100
commita899d6ca101d0ed735e13dc4c57b0b8fc0465d37 (patch)
treebe82821dda619d12df5d8bb1a7fe24394de91fdb /libavformat/internal.h
parentfc45d924d7ff6be80e90870540ba35efc290e428 (diff)
downloadffmpeg-a899d6ca101d0ed735e13dc4c57b0b8fc0465d37.tar.gz
avformat: Change avpriv_new_chapter() from O(n) to (1) in the common case
Fixes: timeout (slow -> 300ms) Fixes: 28876/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5664824587583488 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 49e82bfbca..f45b1cd6b4 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -142,6 +142,11 @@ struct AVFormatInternal {
* Prefer the codec framerate for avg_frame_rate computation.
*/
int prefer_codec_framerate;
+
+ /**
+ * Set if chapter ids are strictly monotonic.
+ */
+ int chapter_ids_monotonic;
};
struct AVStreamInternal {