aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xsubdec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-15 00:57:24 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-15 00:57:24 +0000
commitfd35d6d097b98f6e585da3c4cac57a9b406ec686 (patch)
treef5c03978dc2dff7a05437fdffdde5d98c5b5ede9 /libavcodec/xsubdec.c
parent90ea6fce1eb28c5b4fdff5b9e93771243d28d18d (diff)
downloadffmpeg-fd35d6d097b98f6e585da3c4cac57a9b406ec686.tar.gz
Remove code that is now dead.
Originally committed as revision 19644 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/xsubdec.c')
-rw-r--r--libavcodec/xsubdec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 9d3ba7f6ef..d11d337fc4 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -54,7 +54,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
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 *avctx, void *data, int *data_size,
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;