[FFmpeg-cvslog] bintext: remove unused variable.

Nicolas George git at videolan.org
Wed Sep 28 16:31:19 CEST 2011


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Sep 25 13:12:05 2011 +0200| [4a14dd76cffa5cfed8629732a7dbfbe800b08182] | committer: Michael Niedermayer

bintext: remove unused variable.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4a14dd76cffa5cfed8629732a7dbfbe800b08182
---

 libavformat/bintext.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index a0a1f21..69c7ab5 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -173,7 +173,6 @@ static int xbin_read_header(AVFormatContext *s,
     BinDemuxContext *bin = s->priv_data;
     ByteIOContext *pb = s->pb;
     char fontheight, flags;
-    uint8_t *h;
 
     AVStream *st = init_stream(s, ap);
     if (!st)
@@ -193,7 +192,7 @@ static int xbin_read_header(AVFormatContext *s,
         st->codec->extradata_size += fontheight * (flags & 0x10 ? 512 : 256);
     st->codec->codec_id    = flags & 4 ? CODEC_ID_XBIN : CODEC_ID_BINTEXT;
 
-    h = st->codec->extradata = av_malloc(st->codec->extradata_size);
+    st->codec->extradata = av_malloc(st->codec->extradata_size);
     if (!st->codec->extradata)
         return AVERROR(ENOMEM);
     st->codec->extradata[0] = fontheight;



More information about the ffmpeg-cvslog mailing list