aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/cafdec.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/cafdec.c
parentf05563531338e4c35a3e17bcb82769f194bb7ee3 (diff)
downloadffmpeg-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/cafdec.c')
-rw-r--r--libavformat/cafdec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index 38cde3be50..02d1e3ccaa 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -286,8 +286,6 @@ static int read_header(AVFormatContext *s,
"block size or frame size are variable.\n");
return AVERROR_INVALIDDATA;
}
- s->file_size = avio_size(pb);
- s->file_size = FFMAX(0, s->file_size);
av_set_pts_info(st, 64, 1, st->codec->sample_rate);
st->start_time = 0;