summaryrefslogtreecommitdiff
path: root/libavformat/qcp.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-10-09 14:12:14 +0200
committerAnton Khirnov <anton@khirnov.net>2011-10-17 08:25:38 +0200
commitc10731e78b3ed89090b808b0919947f5729841c3 (patch)
tree3a0e4be626ec4e2247cd32cb25ede822311e5c59 /libavformat/qcp.c
parentf05563531338e4c35a3e17bcb82769f194bb7ee3 (diff)
lavf: deprecate AVFormatContext.file_size
It's too unreliable to be useful. avio_size() should be called instead.
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;