[FFmpeg-devel] [PATCH] Fix incorrect bitmap header in rawvideo AVI output and allow input of resulting files.

Martin Gentry mgentry
Sat Jul 28 23:18:13 CEST 2007


On 7/28/07, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> Hi
>
> the avi raw flip problem is not an easy one to solve


You can say that again.

also there are 2 problems
> 1. is reading raw avi properly with either vertical direction
> 2. is storing it properly
>
> to solve 1. i would move the flip code from rawdec.c to avidec.c this
> avoids a headache for the stream copy case between avi and non avi
> also the flip code is avi specific not raw specific

to solve 2. i would simply always assume top down raw in avienc.c


I wasn't sure what the approach people would prefer regarding whether to
push knowledge of the orientation of the frames from avidec to rawdec or
move handling of the frame data for this case into avidec.  Which is why I
cooked up the flag instead since it seemed to be the smallest change.

I'll give your suggestions a shot and try to post a patch for it.

also read:
> http://www.fourcc.org/fccbihgt.php
> (negtive height is invalid for anything but raw rgb)


Thanks for that link.

-martin




More information about the ffmpeg-devel mailing list