[FFmpeg-cvslog] r19644 - trunk/libavcodec/xsubdec.c
reimar
subversion
Sat Aug 15 02:57:24 CEST 2009
Author: reimar
Date: Sat Aug 15 02:57:24 2009
New Revision: 19644
Log:
Remove code that is now dead.
Modified:
trunk/libavcodec/xsubdec.c
Modified: trunk/libavcodec/xsubdec.c
==============================================================================
--- trunk/libavcodec/xsubdec.c Sat Aug 15 02:52:41 2009 (r19643)
+++ trunk/libavcodec/xsubdec.c Sat Aug 15 02:57:24 2009 (r19644)
@@ -54,7 +54,6 @@ static int decode_frame(AVCodecContext *
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 @@ static int decode_frame(AVCodecContext *
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;
More information about the ffmpeg-cvslog
mailing list