theora: tautology
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Aug 2014 18:10:08 +0000 (21:10 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 18 Aug 2014 18:10:08 +0000 (21:10 +0300)
modules/codec/theora.c

index c2adc03..3c033f4 100644 (file)
@@ -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 */