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
36fbe3c7
Commit
36fbe3c7
authored
Jul 15, 2014
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/x11grab: change error code for unsupported visuals.
parent
a65c0a3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
x11grab.c
libavdevice/x11grab.c
+3
-3
No files found.
libavdevice/x11grab.c
View file @
36fbe3c7
...
@@ -287,7 +287,7 @@ x11grab_read_header(AVFormatContext *s1)
...
@@ -287,7 +287,7 @@ x11grab_read_header(AVFormatContext *s1)
}
else
{
}
else
{
av_log
(
s1
,
AV_LOG_ERROR
,
"RGB ordering at image depth %i not supported ... aborting
\n
"
,
image
->
bits_per_pixel
);
av_log
(
s1
,
AV_LOG_ERROR
,
"RGB ordering at image depth %i not supported ... aborting
\n
"
,
image
->
bits_per_pixel
);
av_log
(
s1
,
AV_LOG_ERROR
,
"color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx
\n
"
,
image
->
red_mask
,
image
->
green_mask
,
image
->
blue_mask
);
av_log
(
s1
,
AV_LOG_ERROR
,
"color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx
\n
"
,
image
->
red_mask
,
image
->
green_mask
,
image
->
blue_mask
);
ret
=
AVERROR
(
EIO
)
;
ret
=
AVERROR
_PATCHWELCOME
;
goto
out
;
goto
out
;
}
}
break
;
break
;
...
@@ -303,7 +303,7 @@ x11grab_read_header(AVFormatContext *s1)
...
@@ -303,7 +303,7 @@ x11grab_read_header(AVFormatContext *s1)
}
else
{
}
else
{
av_log
(
s1
,
AV_LOG_ERROR
,
"rgb ordering at image depth %i not supported ... aborting
\n
"
,
image
->
bits_per_pixel
);
av_log
(
s1
,
AV_LOG_ERROR
,
"rgb ordering at image depth %i not supported ... aborting
\n
"
,
image
->
bits_per_pixel
);
av_log
(
s1
,
AV_LOG_ERROR
,
"color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx
\n
"
,
image
->
red_mask
,
image
->
green_mask
,
image
->
blue_mask
);
av_log
(
s1
,
AV_LOG_ERROR
,
"color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx
\n
"
,
image
->
red_mask
,
image
->
green_mask
,
image
->
blue_mask
);
ret
=
AVERROR
(
EIO
)
;
ret
=
AVERROR
_PATCHWELCOME
;
goto
out
;
goto
out
;
}
}
break
;
break
;
...
@@ -312,7 +312,7 @@ x11grab_read_header(AVFormatContext *s1)
...
@@ -312,7 +312,7 @@ x11grab_read_header(AVFormatContext *s1)
break
;
break
;
default:
default:
av_log
(
s1
,
AV_LOG_ERROR
,
"image depth %i not supported ... aborting
\n
"
,
image
->
bits_per_pixel
);
av_log
(
s1
,
AV_LOG_ERROR
,
"image depth %i not supported ... aborting
\n
"
,
image
->
bits_per_pixel
);
ret
=
AVERROR
(
EINVAL
)
;
ret
=
AVERROR
_PATCHWELCOME
;
goto
out
;
goto
out
;
}
}
...
...
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