Mercurial > libavformat.hg
diff riff.c @ 4550:a36f9f2eefcb libavformat
Fix raw rgb/bgr vertical flip in avi based on info from http://www.fourcc.org/fccbihgt.php.
partially fixes issue862.
author | michael |
---|---|
date | Sat, 21 Feb 2009 15:32:56 +0000 |
parents | 16856c4b7cff |
children | 6b1e0c3211d6 |
line wrap: on
line diff
--- a/riff.c Sat Feb 21 14:40:19 2009 +0000 +++ b/riff.c Sat Feb 21 15:32:56 2009 +0000 @@ -368,7 +368,8 @@ { put_le32(pb, 40 + enc->extradata_size); /* size */ put_le32(pb, enc->width); - put_le32(pb, enc->height); + //We always store RGB TopDown + put_le32(pb, enc->codec_tag ? enc->height : -enc->height); put_le16(pb, 1); /* planes */ put_le16(pb, enc->bits_per_coded_sample ? enc->bits_per_coded_sample : 24); /* depth */