avcodec/dvbsubdec: dont mix integers with pointers
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 Aug 2014 22:41:07 +0000 (00:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 16 Aug 2014 13:58:40 +0000 (15:58 +0200)
Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvbsubdec.c

index a40da768de68d1e4ff54a3b6383192fa111247a5..4cf5b0298957a86903c31dc32c347f237d3a89e8 100644 (file)
@@ -888,7 +888,7 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis
         av_dlog(avctx, "\n");
 #endif
 
-    if (region == 0)
+    if (!region)
         return;
 
     pbuf = region->pbuf;
@@ -1383,7 +1383,7 @@ static void save_display_set(DVBSubContext *ctx)
 
             clut = get_clut(ctx, region->clut);
 
-            if (clut == 0)
+            if (!clut)
                 clut = &default_clut;
 
             switch (region->depth) {