avformat/yuv4mpegdec: Remove unused variables
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 Jul 2015 12:49:55 +0000 (14:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 11 Jul 2015 12:49:55 +0000 (14:49 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/yuv4mpegdec.c

index 4ebdb78..3f6dac0 100644 (file)
@@ -270,7 +270,7 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
     int i;
     char header[MAX_FRAME_HEADER+1];
-    int width, height, ret, off = avio_tell(s->pb);
+    int ret, off = avio_tell(s->pb);
     AVStream *st = s->streams[0];
 
     for (i = 0; i < MAX_FRAME_HEADER; i++) {
@@ -290,9 +290,6 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
     if (strncmp(header, Y4M_FRAME_MAGIC, strlen(Y4M_FRAME_MAGIC)))
         return AVERROR_INVALIDDATA;
 
-    width  = st->codec->width;
-    height = st->codec->height;
-
     ret = av_get_packet(s->pb, pkt, s->packet_size - Y4M_FRAME_MAGIC_LEN);
     if (ret < 0)
         return ret;