projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
707cd94
)
vfwcap: flip RGB rawvideo.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Thu, 29 Apr 2010 13:05:27 +0000
(13:05 +0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Thu, 29 Apr 2010 13:05:27 +0000
(13:05 +0000)
Originally committed as revision 22989 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavdevice/vfwcap.c
patch
|
blob
|
blame
|
history
diff --git
a/libavdevice/vfwcap.c
b/libavdevice/vfwcap.c
index
47b5145
..
13aaad9
100644
(file)
--- 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);