git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5369030
)
Select frames to drop a bit smarter.
author
Jean-Paul Saman
<jpsaman@videolan.org>
Fri, 26 Oct 2007 15:07:57 +0000
(15:07 +0000)
committer
Jean-Paul Saman
<jpsaman@videolan.org>
Fri, 26 Oct 2007 15:07:57 +0000
(15:07 +0000)
modules/codec/ffmpeg/video.c
patch
|
blob
|
history
diff --git
a/modules/codec/ffmpeg/video.c
b/modules/codec/ffmpeg/video.c
index
ffae3e6
..
da63707
100644
(file)
--- a/
modules/codec/ffmpeg/video.c
+++ b/
modules/codec/ffmpeg/video.c
@@
-472,7
+472,9
@@
picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block )
b_drawpicture = 0;
if( p_sys->i_late_frames < 8 )
{
b_drawpicture = 0;
if( p_sys->i_late_frames < 8 )
{
- p_sys->p_context->skip_frame = AVDISCARD_NONKEY;
+ p_sys->p_context->skip_frame =
+ (p_sys->i_skip_frame <= AVDISCARD_BIDIR) ?
+ AVDISCARD_BIDIR : p_sys->i_skip_frame;
}
else
{
}
else
{