[FFmpeg-cvslog] dshow: support BI_BITFIELDS compression type
Ramiro Polla
git at videolan.org
Sun Nov 6 17:04:41 CET 2011
ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Sat Oct 8 15:00:00 2011 -0300| [d3bc75c666704cfefcf7a46cb3f20ef35383b996] | committer: Michael Niedermayer
dshow: support BI_BITFIELDS compression type
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3bc75c666704cfefcf7a46cb3f20ef35383b996
---
libavdevice/dshow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 354e663..bba1bba 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -72,6 +72,7 @@ static enum PixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount)
return PIX_FMT_YUYV422;
case MKTAG('I', '4', '2', '0'):
return PIX_FMT_YUV420P;
+ case BI_BITFIELDS:
case BI_RGB:
switch(biBitCount) { /* 1-8 are untested */
case 1:
@@ -711,7 +712,7 @@ dshow_add_device(AVFormatContext *avctx, AVFormatParameters *ap,
codec->bits_per_coded_sample = bih->biBitCount;
} else {
codec->codec_id = CODEC_ID_RAWVIDEO;
- if (bih->biCompression == BI_RGB) {
+ if (bih->biCompression == BI_RGB || bih->biCompression == BI_BITFIELDS) {
codec->bits_per_coded_sample = bih->biBitCount;
codec->extradata = av_malloc(9 + FF_INPUT_BUFFER_PADDING_SIZE);
if (codec->extradata) {
More information about the ffmpeg-cvslog
mailing list