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
3a5bcb1d
Commit
3a5bcb1d
authored
Aug 22, 2019
by
Aman Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/v4l2_m2m: log requested pixel formats
Signed-off-by:
Aman Gupta
<
aman@tmm1.net
>
parent
ef43a4d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
v4l2_m2m.c
libavcodec/v4l2_m2m.c
+11
-0
No files found.
libavcodec/v4l2_m2m.c
View file @
3a5bcb1d
...
...
@@ -132,6 +132,7 @@ static int v4l2_configure_contexts(V4L2m2mContext* s)
{
void
*
log_ctx
=
s
->
avctx
;
int
ret
;
struct
v4l2_format
ofmt
,
cfmt
;
s
->
fd
=
open
(
s
->
devname
,
O_RDWR
|
O_NONBLOCK
,
0
);
if
(
s
->
fd
<
0
)
...
...
@@ -141,6 +142,16 @@ static int v4l2_configure_contexts(V4L2m2mContext* s)
if
(
ret
<
0
)
goto
error
;
ofmt
=
s
->
output
.
format
;
cfmt
=
s
->
capture
.
format
;
av_log
(
log_ctx
,
AV_LOG_INFO
,
"requesting formats: output=%s capture=%s
\n
"
,
av_fourcc2str
(
V4L2_TYPE_IS_MULTIPLANAR
(
ofmt
.
type
)
?
ofmt
.
fmt
.
pix_mp
.
pixelformat
:
ofmt
.
fmt
.
pix
.
pixelformat
),
av_fourcc2str
(
V4L2_TYPE_IS_MULTIPLANAR
(
cfmt
.
type
)
?
cfmt
.
fmt
.
pix_mp
.
pixelformat
:
cfmt
.
fmt
.
pix
.
pixelformat
));
ret
=
ff_v4l2_context_set_format
(
&
s
->
output
);
if
(
ret
)
{
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"can't set v4l2 output format
\n
"
);
...
...
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