diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index de910c0..757f7a5 100644
|
a
|
b
|
dshow_add_device(AVFormatContext *avctx,
|
| 996 | 996 | par->codec_id = AV_CODEC_ID_RAWVIDEO; |
| 997 | 997 | if (bih->biCompression == BI_RGB || bih->biCompression == BI_BITFIELDS) { |
| 998 | 998 | par->bits_per_coded_sample = bih->biBitCount; |
| | 999 | if (par->height < 0) { |
| | 1000 | par->height *= -1; |
| | 1001 | } else { |
| 999 | 1002 | par->extradata = av_malloc(9 + AV_INPUT_BUFFER_PADDING_SIZE); |
| 1000 | 1003 | if (par->extradata) { |
| 1001 | 1004 | par->extradata_size = 9; |
| 1002 | 1005 | memcpy(par->extradata, "BottomUp", 9); |
| 1003 | 1006 | } |
| | 1007 | } |
| 1004 | 1008 | } |
| 1005 | 1009 | } |
| 1006 | 1010 | } else { |