aboutsummaryrefslogtreecommitdiff
path: root/libavformat/qcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/qcp.c')
-rw-r--r--libavformat/qcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/qcp.c b/libavformat/qcp.c
index aefb076e3b..291eb182ed 100644
--- a/libavformat/qcp.c
+++ b/libavformat/qcp.c
@@ -92,8 +92,7 @@ static int qcp_read_header(AVFormatContext *s, AVFormatParameters *ap)
return AVERROR(ENOMEM);
avio_rb32(pb); // "RIFF"
- s->file_size = avio_rl32(pb) + 8;
- avio_skip(pb, 8 + 4 + 1 + 1); // "QLCMfmt " + chunk-size + major-version + minor-version
+ avio_skip(pb, 4 + 8 + 4 + 1 + 1); // filesize + "QLCMfmt " + chunk-size + major-version + minor-version
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->channels = 1;