# HG changeset patch # User reimar # Date 1250297844 0 # Node ID 15a27663cce415af8d8fec62563d239e0235808f # Parent e73c688ca84cb9d4e0dc1266e7b4b9a86ef0787a Remove code that is now dead. diff -r e73c688ca84c -r 15a27663cce4 xsubdec.c --- a/xsubdec.c Sat Aug 15 00:52:41 2009 +0000 +++ b/xsubdec.c Sat Aug 15 00:57:24 2009 +0000 @@ -54,7 +54,6 @@ GetBitContext gb; memset(sub, 0, sizeof(*sub)); - sub->format = 0; // check that at least header fits if (buf_size < 27 + 7 * 2 + 4 * 3) { @@ -84,12 +83,9 @@ rlelen = bytestream_get_le16(&buf); // allocate sub and set values - if (!sub->rects) { sub->rects = av_mallocz(sizeof(*sub->rects)); sub->rects[0] = av_mallocz(sizeof(*sub->rects[0])); sub->num_rects = 1; - } - av_freep(&sub->rects[0]->pict.data[0]); sub->rects[0]->x = x; sub->rects[0]->y = y; sub->rects[0]->w = w; sub->rects[0]->h = h; sub->rects[0]->type = SUBTITLE_BITMAP;