diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-28 05:34:46 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-28 05:34:46 +0400 |
commit | dd72228e53270a65f7311bb930c1324c209976c7 (patch) | |
tree | 2afc3e60e0fadc86a5a18aef685e258be5c77f6c /libavcodec/dvbsubdec.c | |
parent | 8403c543dee36f3bd7e068749d74194b3cd87417 (diff) |
minor simplification
Originally committed as revision 13485 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r-- | libavcodec/dvbsubdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 96c99ee08a..47fea45ea6 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -274,25 +274,25 @@ static void delete_region_display_list(DVBSubContext *ctx, DVBSubRegion *region) object = get_object(ctx, display->object_id); if (object) { - obj_disp = object->display_list; obj_disp_ptr = &object->display_list; + obj_disp = *obj_disp_ptr; while (obj_disp && obj_disp != display) { obj_disp_ptr = &obj_disp->object_list_next; - obj_disp = obj_disp->object_list_next; + obj_disp = *obj_disp_ptr; } if (obj_disp) { *obj_disp_ptr = obj_disp->object_list_next; if (!object->display_list) { - obj2 = ctx->object_list; obj2_ptr = &ctx->object_list; + obj2 = *obj2_ptr; while (obj2 != object) { assert(obj2); obj2_ptr = &obj2->next; - obj2 = obj2->next; + obj2 = *obj2_ptr; } *obj2_ptr = obj2->next; |