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/avformat.h | |
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/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 70d466e0d1..61b231ec1d 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 |