diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-09-12 01:03:58 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-09-14 18:49:51 +0800 |
commit | a8d9da4c8b574dab4f35f4b6802f52b1bc0156cc (patch) | |
tree | f7d76d0369bd5d384957bf47caddaa2b9cd75bc9 /libavformat/isom.h | |
parent | 6434e440039910f12f7c08072b7db3c5e99c3025 (diff) | |
download | ffmpeg-a8d9da4c8b574dab4f35f4b6802f52b1bc0156cc.tar.gz |
avformat/mov: add interleaved_read option
For badly interleaved files, interleave packets from multiple tracks
at the demuxer level can trigger seeking back and forth, which can be
dramatically slow depending on the protocol. Demuxer level interleave
can be useless sometimes, e.g., reading mp4 via http and then
transcoding/remux to DASH. Disable this option when you don't need the
demuxer level interleave, and want to avoid the IO penalizes.
Co-authored-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r-- | libavformat/isom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h index 4b1cd42f0f..3d375d7a46 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -327,6 +327,7 @@ typedef struct MOVContext { int64_t extent_offset; } *avif_info; int avif_info_size; + int interleaved_read; } MOVContext; int ff_mp4_read_descr_len(AVIOContext *pb); |