aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2010-04-29 13:05:27 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-04-29 13:05:27 +0000
commitfaa2989e0f016fa44d41bc1047dee4f421ab088a (patch)
tree470a5d2584900d5f837bb145f5bf19085b6a9642
parent707cd944d61087dc1ea584ba7f0164919f42cda9 (diff)
downloadffmpeg-faa2989e0f016fa44d41bc1047dee4f421ab088a.tar.gz
vfwcap: flip RGB rawvideo.
Originally committed as revision 22989 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavdevice/vfwcap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 47b51456dd..13aaad92ef 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -368,8 +368,14 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec->bits_per_coded_sample = biBitCount;
} else {
codec->codec_id = CODEC_ID_RAWVIDEO;
- if(biCompression == BI_RGB)
+ if(biCompression == BI_RGB) {
codec->bits_per_coded_sample = biBitCount;
+ codec->extradata = av_malloc(9 + FF_INPUT_BUFFER_PADDING_SIZE);
+ if (codec->extradata) {
+ codec->extradata_size = 9;
+ memcpy(codec->extradata, "BottomUp", 9);
+ }
+ }
}
av_set_pts_info(st, 32, 1, 1000);