diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-14 19:44:33 +0400 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-14 19:44:33 +0400 |
commit | cada03275e9a9b1a7d9bce799deeeaf4d8835d29 (patch) | |
tree | 66f517da1e82fdafe0c77676270305f0678bd25a /libavdevice/vfwcap.c | |
parent | 23ef6da8366a3309a61379a651c1aabbb9148a6e (diff) |
Add #if 0 code to test for yet unsupported compressions
from user-supplied verbose information.
Originally committed as revision 12822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r-- | libavdevice/vfwcap.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index 904b4c8fa0..b1d9488d80 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -318,6 +318,18 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) bi->bmiHeader.biWidth = width ; bi->bmiHeader.biHeight = height; +#if 0 + /* For testing yet unsupported compressions + * Copy these values from-user supplied verbose information */ + bi->bmiHeader.biWidth = 320; + bi->bmiHeader.biHeight = 240; + bi->bmiHeader.biPlanes = 1; + bi->bmiHeader.biBitCount = 12; + bi->bmiHeader.biCompression = MKTAG('I','4','2','0'); + bi->bmiHeader.biSizeImage = 115200; + dump_bih(s, &bi->bmiHeader); +#endif + ret = SendMessage(ctx->hwnd, WM_CAP_SET_VIDEOFORMAT, bisize, (LPARAM) bi); if(!ret) { av_log(s, AV_LOG_ERROR, "Could not set Video Format.\n"); |