[vlc-commits] theora: tautology

Rémi Denis-Courmont git at videolan.org
Mon Aug 18 20:10:31 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 18 21:10:08 2014 +0300| [2708cd95f3d9ccb161946473412707ba21d17b86] | committer: Rémi Denis-Courmont

theora: tautology

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

 modules/codec/theora.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index c2adc03..3c033f4 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -223,7 +223,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     {
         if( ProcessHeaders( p_dec ) )
         {
-            block_Release( *pp_block );
+            block_Release( p_block );
             return NULL;
         }
         p_sys->b_has_headers = true;
@@ -453,8 +453,7 @@ static void *ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
     else
     {
         p_buf = DecodePacket( p_dec, p_oggpacket );
-        if( p_block )
-            block_Release( p_block );
+        block_Release( p_block );
     }
 
     /* Date management */



More information about the vlc-commits mailing list