[FFmpeg-devel] [PATCH v9] lavc/rawdec: Remove monowhite switching code for 1 bpp AVI without a palette

Mats Peterson matsp888 at yahoo.com
Sat Feb 13 11:38:49 CET 2016


On 02/13/2016 11:29 AM, Mats Peterson wrote:
>> Nope. You have to take the stride in account as well, not just the width
>> and height, and it varies in nut, depending on whether you use "-vcodec
>> copy" or "-vcodec rawvideo".
>>
>> Mats
>>
>
> And you'll have to calculate the stride by subtracting the palette size
> from the packet size, then divide by the height.
>
> Mats
>
> _______________________________________________

It is all well that the nut palette can have a varying number of 
entries, but it's necessary to have an indication of *how many* entries 
there are in the palette, in order to be able to subtract its size from 
the packet size.

Mats



More information about the ffmpeg-devel mailing list