diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2020-07-08 17:32:25 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2020-07-15 20:52:01 +0530 |
commit | 1ec2b3de5a074ccce555e33d7f282bbbb6d963d7 (patch) | |
tree | e309c38bf1b3757584ad58e228aa50efb6d8d320 /libavformat/asfenc.c | |
parent | a54b367c781f7735c321e6ac08a5deebeb9796a9 (diff) | |
download | ffmpeg-1ec2b3de5a074ccce555e33d7f282bbbb6d963d7.tar.gz |
avformat/riffenc: indicate storage of flipped RGB bitmaps
Some legacy applications such as AVI2MVE expect raw RGB bitmaps
to be stored bottom-up, whereas our RIFF BITMAPINFOHEADER assumes
they are always stored top-down and thus write a negative value
for height. This can prevent reading of these files.
Option flipped_raw_rgb added to AVI and Matroska muxers
which will write positive value for height when enabled.
Note that the user has to flip the bitmaps beforehand using other
means such as the vflip filter.
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r-- | libavformat/asfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 73afb13200..8b24264c94 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -682,7 +682,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, avio_wl16(pb, 40 + par->extradata_size); /* size */ /* BITMAPINFOHEADER header */ - ff_put_bmp_header(pb, par, 1, 0); + ff_put_bmp_header(pb, par, 1, 0, 0); } end_header(pb, hpos); } |