summaryrefslogtreecommitdiff
path: root/libavformat/moflex.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-05-20 18:25:47 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-05-27 17:41:04 +0200
commit36a3a5050a06ed98e34a94caac7f4daf764cf55c (patch)
tree28bebd667ccebb3ee6d74563e7cdd97992518987 /libavformat/moflex.c
parent918fc9a0ed4e9202341ffb3e7e4b72b4387dfe0a (diff)
downloadffmpeg-36a3a5050a06ed98e34a94caac7f4daf764cf55c.tar.gz
avformat/moflex: Remove unneeded format variable
Fixes: CID1477423 Uninitialized scalar variable Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/moflex.c')
-rw-r--r--libavformat/moflex.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/moflex.c b/libavformat/moflex.c
index 0adb5f4864..234b0fb06e 100644
--- a/libavformat/moflex.c
+++ b/libavformat/moflex.c
@@ -172,7 +172,6 @@ static int moflex_read_sync(AVFormatContext *s)
unsigned type, ssize, codec_id = 0;
unsigned codec_type, width = 0, height = 0, sample_rate = 0, channels = 0;
int stream_index = -1;
- int format;
AVRational fps;
read_var_byte(s, &type);
@@ -213,7 +212,6 @@ static int moflex_read_sync(AVFormatContext *s)
fps.den = avio_rb16(pb);
width = avio_rb16(pb);
height = avio_rb16(pb);
- format = AV_PIX_FMT_YUV420P;
avio_skip(pb, type == 3 ? 3 : 2);
break;
case 4:
@@ -235,7 +233,6 @@ static int moflex_read_sync(AVFormatContext *s)
st->codecpar->height = height;
st->codecpar->sample_rate= sample_rate;
st->codecpar->channels = channels;
- st->codecpar->format = format;
st->priv_data = av_packet_alloc();
if (!st->priv_data)
return AVERROR(ENOMEM);