Mercurial > libavcodec.hg
changeset 6916:603bdc5d8493 libavcodec
minor simplification
author | michael |
---|---|
date | Wed, 28 May 2008 01:34:46 +0000 |
parents | 77ce2329f620 |
children | 167bd4bec8d1 |
files | dvbsubdec.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/dvbsubdec.c Wed May 28 01:30:59 2008 +0000 +++ b/dvbsubdec.c Wed May 28 01:34:46 2008 +0000 @@ -274,25 +274,25 @@ 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;