[vlc-commits] avcodec: remove unnecessary condition
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:52:38 2016 +0300| [3e3bd2e2383d1590a38ce492df129a19e8c058c0] | committer: Ilkka Ollakka
avcodec: remove unnecessary condition
condition makes no sense in here, as skipframes is set already unconditionally
at the start of the block.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e3bd2e2383d1590a38ce492df129a19e8c058c0
---
modules/codec/avcodec/video.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 17044dc..7e3d5d6 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -771,11 +771,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
return NULL;
}
- if( p_context->width <= 0 || p_context->height <= 0 )
- {
- p_context->skip_frame = p_sys->i_skip_frame;
- }
- else if( !b_need_output_picture )
+ if( !b_need_output_picture )
{
p_context->skip_frame = __MAX( p_context->skip_frame,
AVDISCARD_NONREF );
More information about the vlc-commits
mailing list