[vlc-devel] commit: Fixed skip_frame setting (avcodec). (Laurent Aimar )
git version control
git at videolan.org
Mon Mar 23 21:44:24 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Mar 23 21:23:01 2009 +0100| [3b054a1c5dcfe7cd6a1828f971c2efd72145f076] | committer: Laurent Aimar
Fixed skip_frame setting (avcodec).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b054a1c5dcfe7cd6a1828f971c2efd72145f076
---
modules/codec/avcodec/video.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 2c9c831..cf2171b 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -500,8 +500,9 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
}
else if( !b_drawpicture )
{
- p_sys->p_context->skip_frame = __MAX( p_sys->p_context->skip_frame,
- AVDISCARD_NONREF );
+ if( p_sys->b_hurry_up )
+ p_sys->p_context->skip_frame = __MAX( p_sys->p_context->skip_frame,
+ AVDISCARD_NONREF );
}
/*
More information about the vlc-devel
mailing list