[FFmpeg-devel] [PATCH 2/2] avformat/mov: increase current_sample after reading, to avoid discontinuous sample
bbcallen at gmail.com
Thu May 21 06:31:21 CEST 2015
Discontinuous sample could cause corrupted image if next video frame
is non-key frame.
Mostly, avio_seek() fails on I/O error for http/ftp/... stream.
In my opinion, retry is better than skip.
> - /* must be done just before reading, to avoid infinite loop on sample */
> - sc->current_sample++;
This line was first introduced in 2006 by commit b72708f8f.
I'm not sure if it worth an option to enable the new behaviour,
and keep the default behaviour as before.
More information about the ffmpeg-devel