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
aecd8612
Commit
aecd8612
authored
Aug 12, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: rate limit messages about direct rendering
parent
5e7c961f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+12
-7
No files found.
modules/codec/avcodec/video.c
View file @
aecd8612
...
...
@@ -943,6 +943,7 @@ static picture_t *lavc_dr_GetFrame(struct AVCodecContext *ctx,
AVFrame
*
frame
,
int
flags
)
{
decoder_t
*
dec
=
(
decoder_t
*
)
ctx
->
opaque
;
decoder_sys_t
*
sys
=
dec
->
p_sys
;
if
(
GetVlcChroma
(
&
dec
->
fmt_out
.
video
,
ctx
->
pix_fmt
)
!=
VLC_SUCCESS
)
return
NULL
;
...
...
@@ -963,15 +964,17 @@ static picture_t *lavc_dr_GetFrame(struct AVCodecContext *ctx,
/* Check that the picture is suitable for libavcodec */
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
);
if
(
sys
->
i_direct_rendering_used
!=
0
)
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
);
if
(
sys
->
i_direct_rendering_used
!=
0
)
msg_Dbg
(
dec
,
"plane 0: lines too few (%d/%d)"
,
pic
->
p
[
0
].
i_lines
,
height
);
goto
no_dr
;
}
...
...
@@ -979,13 +982,15 @@ static picture_t *lavc_dr_GetFrame(struct AVCodecContext *ctx,
{
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
]);
if
(
sys
->
i_direct_rendering_used
!=
0
)
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
);
if
(
sys
->
i_direct_rendering_used
!=
0
)
msg_Warn
(
dec
,
"plane %d not aligned"
,
i
);
goto
no_dr
;
}
}
...
...
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