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;
clut = get_clut(ctx, clut_id);
- if (clut == NULL) {
+ if (!clut) {
clut = av_malloc(sizeof(DVBSubCLUT));
memcpy(clut, &default_clut, sizeof(DVBSubCLUT));
region = get_region(ctx, region_id);
- if (region == NULL) {
+ if (!region) {
region = av_mallocz(sizeof(DVBSubRegion));
region->id = region_id;
object = get_object(ctx, object_id);
- if (object == NULL) {
+ if (!object) {
object = av_mallocz(sizeof(DVBSubObject));
object->id = object_id;
display = display->next;
}
- if (display == NULL)
+ if (!display)
display = av_mallocz(sizeof(DVBSubRegionDisplay));
display->region_id = region_id;
region = get_region(ctx, display->region_id);
rect = &sub->rects[i];
- if (region == NULL)
+ if (!region)
continue;
rect->x = display->x_pos;
clut = get_clut(ctx, region->clut);
- if (clut == NULL)
+ if (!clut)
clut = &default_clut;
switch (region->depth) {