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

Mats Peterson matsp888 at yahoo.com
Fri Feb 5 02:58:17 CET 2016


On 02/05/2016 02:53 AM, Mats Peterson wrote:
> On 02/05/2016 02:49 AM, 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.
>>
>
>
> Well, I suppose it can as the result of avctx->width / 8 ...
>
>

No, I don't think it can, because of "+ (avctx->width & 7 ? 1 : 0) for 
the "is_nut_mono()" case.

Mats



More information about the ffmpeg-devel mailing list