[FFmpeg-devel] [PATCH] lavc/rawdec: Use 16-byte line alignment for B1W0 and B0W1 video in nut

Michael Niedermayer michael at niedermayer.cc
Fri Feb 5 03:04:35 CET 2016


On Fri, Feb 05, 2016 at 02:49:57AM +0100, Mats Peterson wrote:
> On 02/05/2016 02:46 AM, Michael Niedermayer wrote:
> >stride can be 0 and cause division by 0 later
> >
> 
> It can't, as far as I can see, since I'm checking both avctx->width
> and avctx->height before doing anything else. Furthermore, it's not
> used in any division.

stride = avpkt->size / avctx->height;

avpkt->size < avctx->height;

stride is used in %

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

Avoid a single point of failure, be that a person or equipment.
-------------- 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/20160205/613c6211/attachment.sig>


More information about the ffmpeg-devel mailing list