diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-10-09 14:12:14 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-10-17 08:25:38 +0200 |
commit | c10731e78b3ed89090b808b0919947f5729841c3 (patch) | |
tree | 3a0e4be626ec4e2247cd32cb25ede822311e5c59 /libavformat/qcp.c | |
parent | f05563531338e4c35a3e17bcb82769f194bb7ee3 (diff) | |
download | ffmpeg-c10731e78b3ed89090b808b0919947f5729841c3.tar.gz |
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.c | 3 |
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; |