[FFmpeg-devel] [PATCH] Support BMP files that do not properly align lines.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jan 27 06:38:22 CET 2015


On 26.01.2015, at 22:49, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, Jan 26, 2015 at 08:21:16PM +0100, Reimar Döffinger wrote:
>> Quite a few programs missed that detail of the spec
>> (including old versions of FFmpeg I believe) and when
>> we would otherwise fail anyway it seems worth a try
>> to us a simple byte-aligned stride instead.
>> 
>> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
>> ---
>> libavcodec/bmp.c | 10 +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
> 
> should be ok, do you have a file that needs this ?

Yes, the game X-Wing Alliance creates such files as screenshots if you hack to use affected resolutions.
You can discuss whether they forgot about it or left it out because it doesn't "officially" support such resolutions.
Or do you mean because you'd like a test-case? That should be possible to get.


More information about the ffmpeg-devel mailing list