Commit 0014541e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dvbsubdec: dont mix integers with pointers

Reviewed-by: 's avatarJames Darnley <james.darnley@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2d7cec14
...@@ -888,7 +888,7 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis ...@@ -888,7 +888,7 @@ static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDis
av_dlog(avctx, "\n"); av_dlog(avctx, "\n");
#endif #endif
if (region == 0) if (!region)
return; return;
pbuf = region->pbuf; pbuf = region->pbuf;
...@@ -1383,7 +1383,7 @@ static void save_display_set(DVBSubContext *ctx) ...@@ -1383,7 +1383,7 @@ static void save_display_set(DVBSubContext *ctx)
clut = get_clut(ctx, region->clut); clut = get_clut(ctx, region->clut);
if (clut == 0) if (!clut)
clut = &default_clut; clut = &default_clut;
switch (region->depth) { switch (region->depth) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment