1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/dvbsubdec: dont mix integers with pointers

Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-16 00:41:07 +02:00
parent 2d7cec14be
commit 0014541e9a

View 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) {