Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d3bc75c6
Commit
d3bc75c6
authored
Oct 08, 2011
by
Ramiro Polla
Committed by
Michael Niedermayer
Nov 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: support BI_BITFIELDS compression type
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b13ba5cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dshow.c
libavdevice/dshow.c
+2
-1
No files found.
libavdevice/dshow.c
View file @
d3bc75c6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment