[FFmpeg-devel] [PATCH] fftools/ffmpeg: Check AVPacket->duration for being positive not just non zero

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu May 17 17:01:33 EEST 2018

On Thu, May 17, 2018 at 1:22 AM, Michael Niedermayer
<michael at niedermayer.cc> wrote:
> Some demuxers (mov, microdvd at least) set duration negative.
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  fftools/ffmpeg.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

The patch itself seems reasonable, though I am curious when
the mov demuxer produces negative durations. Is it due to edit
list applications / discard packets, or is it just read in directly
from the mov's sample duration box?

- Derek

More information about the ffmpeg-devel mailing list