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/cafdec.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/cafdec.c')
-rw-r--r-- | libavformat/cafdec.c | 2 |
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; |