summaryrefslogtreecommitdiff
path: root/libavformat/aiffdec.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/aiffdec.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/aiffdec.c')
-rw-r--r--libavformat/aiffdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 34e6d88ab9..54972de5e0 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -268,9 +268,6 @@ static int aiff_read_header(AVFormatContext *s,
got_sound:
/* Now positioned, get the sound data start and end */
- if (st->nb_frames)
- s->file_size = st->nb_frames * st->codec->block_align;
-
av_set_pts_info(st, 64, 1, st->codec->sample_rate);
st->start_time = 0;
st->duration = st->codec->frame_size ?