[FFmpeg-devel] [PATCH] lavc/utils.c: Make sure skip_samples never goes negative.

Michael Niedermayer michael at niedermayer.cc
Thu Nov 10 18:50:14 EET 2016


On Thu, Nov 10, 2016 at 01:30:34PM +0000, Derek Buitenhuis wrote:
> On 11/4/2016 10:31 PM, Sasi Inguva wrote:
> > -            avctx->internal->skip_samples -= frame->nb_samples;
> > +            avctx->internal->skip_samples = FFMAX(0, avctx->internal->skip_samples - frame->nb_samples);
> 
> LGTM.

applied

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161110/a717dabe/attachment.sig>


More information about the ffmpeg-devel mailing list