Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -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) { |