Browse code

avcodec/dvbsubdec: dont mix integers with pointers

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/08/16 07:41:07
Showing 1 changed files
... ...
@@ -888,7 +888,7 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis
888 888
         av_dlog(avctx, "\n");
889 889
 #endif
890 890
 
891
-    if (region == 0)
891
+    if (!region)
892 892
         return;
893 893
 
894 894
     pbuf = region->pbuf;
... ...
@@ -1383,7 +1383,7 @@ static void save_display_set(DVBSubContext *ctx)
1383 1383
 
1384 1384
             clut = get_clut(ctx, region->clut);
1385 1385
 
1386
-            if (clut == 0)
1386
+            if (!clut)
1387 1387
                 clut = &default_clut;
1388 1388
 
1389 1389
             switch (region->depth) {