[FFmpeg-devel] [PATCH] avformat/mov: add io_order option to disable demuxer level interleave

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Aug 31 18:59:29 EEST 2023


On 8/28/2023 5:06 PM, Zhao Zhili wrote:
> -            if (!sample || (!(s->pb->seekable & AVIO_SEEKABLE_NORMAL) && current_sample->pos < sample->pos) ||
> +            if (!sample || (force_io_order && current_sample->pos < sample->pos) ||

Hmm, I think the name `io_order` is a misnomer: It still will not, for example,
output packets in I/O order if the mdat has backwards packets (i.e. mdat starts
with the last packet, and ends with the first packet, which is very stupid, but
technically legal in ISOBMFF/QTFF).

Maybe something like `no_reinterleaving`? Naming is hard, and I am not much
better at it.

- Derek


More information about the ffmpeg-devel mailing list