[FFmpeg-devel] [PATCH] lavf/mov: Add support for edit list parsing.
Derek Buitenhuis
derek.buitenhuis at gmail.com
Fri Oct 21 18:59:14 EEST 2016
On 10/21/2016 4:32 PM, Derek Buitenhuis wrote:
> * Audio packets. Especially audio packets with a large number of samples.
> It's extremely likely that edits will not fall on packet boundaries, and
> depending on the number of samples per packet, audio sync issues can and
> will occur, even with smaller packets of e.g. 1024 samples, if there are
> a large number of entries in the edit list. Gradual loss of sync will
> occur.
Apologies, I do see skip_samples is used, but it's unclear if it is correct
or how to use it.
i.e. skip_samples is documented as:
"Number of samples to skip at the start of the frame decoded from the next packet."
It's extremely vague, doesn't really say *when* to discard samples. After
start? After a seek? Every packet? Does skip_samples get updated mid-demux?
I've been told it's after every reset (i.e. call to av_codec_flush), but the docs
sure don't seem to say this...
Also a friendly reminder that users may not be using libavcodec, but their own
decoder.
Cheers,
- Derek
More information about the ffmpeg-devel
mailing list