|
|
@ -294,7 +294,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) |
|
|
|
bi->bmiHeader.biWidth = width ; |
|
|
|
bi->bmiHeader.biWidth = width ; |
|
|
|
bi->bmiHeader.biHeight = height; |
|
|
|
bi->bmiHeader.biHeight = height; |
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
if (0) { |
|
|
|
/* For testing yet unsupported compressions
|
|
|
|
/* For testing yet unsupported compressions
|
|
|
|
* Copy these values from user-supplied verbose information */ |
|
|
|
* Copy these values from user-supplied verbose information */ |
|
|
|
bi->bmiHeader.biWidth = 320; |
|
|
|
bi->bmiHeader.biWidth = 320; |
|
|
@ -304,7 +304,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) |
|
|
|
bi->bmiHeader.biCompression = MKTAG('I','4','2','0'); |
|
|
|
bi->bmiHeader.biCompression = MKTAG('I','4','2','0'); |
|
|
|
bi->bmiHeader.biSizeImage = 115200; |
|
|
|
bi->bmiHeader.biSizeImage = 115200; |
|
|
|
dump_bih(s, &bi->bmiHeader); |
|
|
|
dump_bih(s, &bi->bmiHeader); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ret = SendMessage(ctx->hwnd, WM_CAP_SET_VIDEOFORMAT, bisize, (LPARAM) bi); |
|
|
|
ret = SendMessage(ctx->hwnd, WM_CAP_SET_VIDEOFORMAT, bisize, (LPARAM) bi); |
|
|
|
if(!ret) { |
|
|
|
if(!ret) { |
|
|
|