[vlc-devel] [PATCH 8/8] opus: use NULL rather than 0

Rafaël Carré funman at videolan.org
Sat Sep 21 16:54:35 CEST 2013


---
 modules/codec/opus.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index 9430391..87e7f46 100644
--- a/modules/codec/opus.c
+++ b/modules/codec/opus.c
@@ -495,7 +495,7 @@ static block_t *Encode(encoder_t *enc, block_t *buf)
 
     sys->i_samples_delay += buf->i_nb_samples;
 
-    block_t *result = 0;
+    block_t *result = NULL;
     unsigned src_start = 0;
     unsigned padding_start = 0;
     /* The maximum Opus frame size is 1275 bytes + TOC sequence length. */
@@ -514,7 +514,7 @@ static block_t *Encode(encoder_t *enc, block_t *buf)
             if (sys->padding->i_nb_samples <= 0)
             {
                 block_Release(sys->padding);
-                sys->padding = 0;
+                sys->padding = NULL;
             }
         }
 
@@ -647,7 +647,7 @@ static int OpenEncoder(vlc_object_t *p_this)
     }
     else
     {
-        sys->padding = 0;
+        sys->padding = NULL;
     }
 
     return VLC_SUCCESS;
-- 
1.8.1.2




More information about the vlc-devel mailing list