Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
dc05b32f
Commit
dc05b32f
authored
Feb 15, 2014
by
Denis Charmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't silently drop late frames
parent
98b613b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+3
-2
No files found.
modules/codec/avcodec/video.c
View file @
dc05b32f
...
...
@@ -492,13 +492,13 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
{
if
(
p_sys
->
i_pts
>
VLC_TS_INVALID
)
{
msg_Err
(
p_dec
,
"more than 5 seconds of late video -> "
"dropping frame (computer too slow ?)"
);
p_sys
->
i_pts
=
VLC_TS_INVALID
;
/* To make sure we recover properly */
}
if
(
p_block
)
block_Release
(
p_block
);
p_sys
->
i_late_frames
--
;
msg_Err
(
p_dec
,
"more than 5 seconds of late video -> "
"dropping frame (computer too slow ?)"
);
return
NULL
;
}
...
...
@@ -521,6 +521,7 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_sys
->
i_late_frames
--
;
/* needed else it will never be decrease */
if
(
p_block
)
block_Release
(
p_block
);
msg_Warn
(
p_dec
,
"More than 4 late frames, dropping frame"
);
return
NULL
;
}
}
...
...
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