mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-20 22:40:47 +00:00
avformat/yuv4mpegdec: Remove unused variables
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
733c5d889b
commit
9b8b804cfb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user