From c10731e78b3ed89090b808b0919947f5729841c3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 9 Oct 2011 14:12:14 +0200 Subject: lavf: deprecate AVFormatContext.file_size It's too unreliable to be useful. avio_size() should be called instead. --- libavformat/avformat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 70d466e..61b231e 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -716,10 +716,12 @@ typedef struct AVFormatContext { */ int64_t duration; +#if FF_API_FILESIZE /** * decoding: total file size, 0 if unknown */ - int64_t file_size; + attribute_deprecated int64_t file_size; +#endif /** * Decoding: total stream bitrate in bit/s, 0 if not -- cgit v1.1