summaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
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/avformat.h
parentf05563531338e4c35a3e17bcb82769f194bb7ee3 (diff)
downloadffmpeg-streaming-c10731e78b3ed89090b808b0919947f5729841c3.zip
ffmpeg-streaming-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.h4
1 files changed, 3 insertions, 1 deletions
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
OpenPOWER on IntegriCloud