[vlc-commits] vpx: simplify

Tristan Matthews git at videolan.org
Tue Apr 19 18:22:49 CEST 2016


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Tue Apr 19 12:20:08 2016 -0400| [6332bce8a3ee811bbc9471d6d6232b5fa6bb3499] | committer: Tristan Matthews

vpx: simplify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6332bce8a3ee811bbc9471d6d6232b5fa6bb3499
---

 modules/codec/vpx.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/vpx.c b/modules/codec/vpx.c
index b8513f3..4d5cb14 100644
--- a/modules/codec/vpx.c
+++ b/modules/codec/vpx.c
@@ -108,9 +108,9 @@ static picture_t *Decode(decoder_t *dec, block_t **pp_block)
 {
     struct vpx_codec_ctx *ctx = &dec->p_sys->ctx;
 
-    block_t *block = pp_block ? *pp_block : NULL;
-    if (!pp_block || !block)
+    if( !pp_block || !*pp_block )
         return NULL;
+    block_t *block = *pp_block;
 
     if (block->i_flags & (BLOCK_FLAG_CORRUPTED)) {
         block_Release(block);



More information about the vlc-commits mailing list