[vlc-commits] avcodec: skip nonref-frames if we don't need output picture
Ilkka Ollakka
git at videolan.org
Wed Sep 7 11:16:43 CEST 2016
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jun 5 12:53:21 2016 +0300| [b7ae6ca50633f8850b83b7373b9fab9167850824] | committer: Ilkka Ollakka
avcodec: skip nonref-frames if we don't need output picture
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7ae6ca50633f8850b83b7373b9fab9167850824
---
modules/codec/avcodec/video.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 7e3d5d6..f610942 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -770,12 +770,11 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
msg_Warn( p_dec, "More than 11 late frames, dropping frame" );
return NULL;
}
-
- if( !b_need_output_picture )
- {
- p_context->skip_frame = __MAX( p_context->skip_frame,
- AVDISCARD_NONREF );
- }
+ }
+ if( !b_need_output_picture )
+ {
+ p_context->skip_frame = __MAX( p_context->skip_frame,
+ AVDISCARD_NONREF );
}
/*
More information about the vlc-commits
mailing list