[vlc-devel] [PATCH 08/10] avcodec: skip nonref-frames if we don't need output picture
ileoo at videolan.org
ileoo at videolan.org
Sun Sep 4 14:30:12 CEST 2016
From: Ilkka Ollakka <ileoo at videolan.org>
---
modules/codec/avcodec/video.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 96d65a1..5e70ce0 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -769,11 +769,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;
}
- else 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 );
}
/*
--
2.6.6
More information about the vlc-devel
mailing list