[FFmpeg-devel] [PATCH] Fix Raw rgb/bgr Vertical Flip in AviSynth

Josh Harris qt
Mon Aug 24 08:39:50 CEST 2009

On Sat, 21 Feb 2009 15:32:56 +0000 (15:32 +0000) a patch was committed:
"Fix raw rgb/bgr vertical flip in avi based on info from
fourcc.org/fccbihgt.php. partially fixes issue862."  This has broken RGB
input from Avisynth files, as they are now decoded upside down.  Taking
some code from libavformat/avidec.c and applying it to
libavformat/avisynth.c seems to fix the issue.

The problem can be demonstrated with the following (it will produce an
avi with the video flipped vertically):
ffmpeg -i bars.avs -vcodec rawvideo -pix_fmt bgr24 bars_bgr24.avi

bars.avs is a script with:

A patch for libavformat/avisynth.c is attached.

Issue862 can be viewed here:

The original commit for issue862 can be viewed here:

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: avisynth_r19254_rgb_flip.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090823/d3f6a59b/attachment.asc>

More information about the ffmpeg-devel mailing list