Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
a8db64a5
Commit
a8db64a5
authored
Jul 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: log why picture is unsuitable for direct rendering
parent
cbedb0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+19
-2
No files found.
modules/codec/avcodec/video.c
View file @
a8db64a5
...
...
@@ -987,16 +987,33 @@ static picture_t *lavc_dr_GetFrame(struct AVCodecContext *ctx,
return
NULL
;
/* Check that the picture is suitable for libavcodec */
if
(
pic
->
p
[
0
].
i_pitch
<
width
*
pic
->
p
[
0
].
i_pixel_pitch
||
pic
->
p
[
0
].
i_lines
<
height
)
if
(
pic
->
p
[
0
].
i_pitch
<
width
*
pic
->
p
[
0
].
i_pixel_pitch
)
{
msg_Dbg
(
dec
,
"plane 0: pitch too small (%d/%d*%d)"
,
pic
->
p
[
0
].
i_pitch
,
width
,
pic
->
p
[
0
].
i_pixel_pitch
);
goto
no_dr
;
}
if
(
pic
->
p
[
0
].
i_lines
<
height
)
{
msg_Dbg
(
dec
,
"plane 0: lines too few (%d/%d)"
,
pic
->
p
[
0
].
i_lines
,
height
);
goto
no_dr
;
}
for
(
int
i
=
0
;
i
<
pic
->
i_planes
;
i
++
)
{
if
(
pic
->
p
[
i
].
i_pitch
%
aligns
[
i
])
{
msg_Dbg
(
dec
,
"plane %d: pitch not aligned (%d%%%d)"
,
i
,
pic
->
p
[
i
].
i_pitch
,
aligns
[
i
]);
goto
no_dr
;
}
if
(((
uintptr_t
)
pic
->
p
[
i
].
p_pixels
)
%
aligns
[
i
])
{
msg_Warn
(
dec
,
"plane %d not aligned"
,
i
);
goto
no_dr
;
}
}
/* Allocate buffer references */
...
...
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