[FFmpeg-cvslog] r22989 - trunk/libavdevice/vfwcap.c

ramiro subversion
Thu Apr 29 15:05:27 CEST 2010


Author: ramiro
Date: Thu Apr 29 15:05:27 2010
New Revision: 22989

Log:
vfwcap: flip RGB rawvideo.

Modified:
   trunk/libavdevice/vfwcap.c

Modified: trunk/libavdevice/vfwcap.c
==============================================================================
--- trunk/libavdevice/vfwcap.c	Wed Apr 28 22:08:02 2010	(r22988)
+++ trunk/libavdevice/vfwcap.c	Thu Apr 29 15:05:27 2010	(r22989)
@@ -368,8 +368,14 @@ static int vfw_read_header(AVFormatConte
         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);



More information about the ffmpeg-cvslog mailing list