[FFmpeg-cvslog] avcodec/dvbsubdec: dont mix integers with pointers
Michael Niedermayer
git at videolan.org
Sat Aug 16 15:59:32 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 16 00:41:07 2014 +0200| [0014541e9a2387a37b1a87c22caa36c525a0b478] | committer: Michael Niedermayer
avcodec/dvbsubdec: dont mix integers with pointers
Reviewed-by: James Darnley <james.darnley at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0014541e9a2387a37b1a87c22caa36c525a0b478
---
libavcodec/dvbsubdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index a40da76..4cf5b02 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list