[FFmpeg-trac] #6279(avdevice:new): can't request rgb24 (uvc over dshow, unknown compression type)
FFmpeg
trac at avcodec.org
Mon Jun 24 23:12:34 EEST 2019
#6279: can't request rgb24 (uvc over dshow, unknown compression type)
-------------------------------------+------------------------------------
Reporter: Djfe | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avdevice
Version: git-master | Resolution:
Keywords: dshow | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by Djfe):
and now I forgot to mention, that I had to modify your patch diff to get
it running:
{{{
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index f2453e6..a23b1d9 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -51,6 +51,14 @@ static enum AVPixelFormat dshow_pixfmt(DWORD
biCompression, WORD biBitCount)
return AV_PIX_FMT_0RGB32;
}
+ case 0xe436eb7b:
+ return AV_PIX_FMT_RGB565;
+ case 0xe436eb7c:
+ return AV_PIX_FMT_RGB555;
+ case 0xe436eb7d:
+ return AV_PIX_FMT_RGB24;
+ case 0xe436eb7e:
+ return AV_PIX_FMT_0RGB32;
}
return avpriv_find_pix_fmt(avpriv_get_raw_pix_fmt_tags(),
biCompression); // all others
}
}}}
I needed to move one of the curly brackets below the new cases, without
that the cases where outside of the outer switch statement (variable:
biCompression).
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6279#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list