changeset 5932:d457f0c01ec5 libavcodec

cosmetic (x==NULL -> !x)
author michael
date Mon, 19 Nov 2007 20:33:25 +0000
parents 3bb292a4ae12
children 6ce8f15fc02b
files dvbsubdec.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/dvbsubdec.c	Mon Nov 19 20:30:00 2007 +0000
+++ b/dvbsubdec.c	Mon Nov 19 20:33:25 2007 +0000
@@ -285,7 +285,7 @@
             if (obj_disp) {
                 *obj_disp_ptr = obj_disp->object_list_next;
 
-                if (object->display_list == NULL) {
+                if (!object->display_list) {
                     obj2 = ctx->object_list;
                     obj2_ptr = &ctx->object_list;
 
@@ -924,7 +924,7 @@
 
     clut = get_clut(ctx, clut_id);
 
-    if (clut == NULL) {
+    if (!clut) {
         clut = av_malloc(sizeof(DVBSubCLUT));
 
         memcpy(clut, &default_clut, sizeof(DVBSubCLUT));
@@ -1000,7 +1000,7 @@
 
     region = get_region(ctx, region_id);
 
-    if (region == NULL) {
+    if (!region) {
         region = av_mallocz(sizeof(DVBSubRegion));
 
         region->id = region_id;
@@ -1064,7 +1064,7 @@
 
         object = get_object(ctx, object_id);
 
-        if (object == NULL) {
+        if (!object) {
             object = av_mallocz(sizeof(DVBSubObject));
 
             object->id = object_id;
@@ -1138,7 +1138,7 @@
             display = display->next;
         }
 
-        if (display == NULL)
+        if (!display)
             display = av_mallocz(sizeof(DVBSubRegionDisplay));
 
         display->region_id = region_id;
@@ -1293,7 +1293,7 @@
         region = get_region(ctx, display->region_id);
         rect = &sub->rects[i];
 
-        if (region == NULL)
+        if (!region)
             continue;
 
         rect->x = display->x_pos;
@@ -1305,7 +1305,7 @@
 
         clut = get_clut(ctx, region->clut);
 
-        if (clut == NULL)
+        if (!clut)
             clut = &default_clut;
 
         switch (region->depth) {