Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2021-10-13 22:21:51 +0300
committerJan Ekström <jeebjp@gmail.com>2021-10-24 13:04:26 +0300
commitd39b58dc32b5fc7b480eeb9ef00a610732f02c2c (patch)
tree011752111a6316fc9716a3ba326f46d2879b187c /libavformat/avio_internal.h
parent97cff84f106ff348a48915866ba7f487a77f2c31 (diff)
avformat/avio: privatize source of truth for AVIOContext::written
Looking at 3f75e5116b900f1428aa13041fc7d6301bf1988a, the field was supposed to be private, but during merging the field and the group that had the comment about it got separated. Thus, move the actual privately utilized state of this variable into the private FFIOContext. Additionally, name the private field somewhat better, so that it does not get confused with the amount of bytes written out.
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r--libavformat/avio_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index eded38759b..467e80701f 100644
--- a/libavformat/avio_internal.h
+++ b/libavformat/avio_internal.h
@@ -66,6 +66,12 @@ typedef struct FFIOContext {
* used after probing to ensure seekback and to reset the buffer size
*/
int orig_buffer_size;
+
+ /**
+ * Written output size
+ * is updated each time a successful writeout ends up further position-wise
+ */
+ int64_t written_output_size;
} FFIOContext;
static av_always_inline FFIOContext *ffiocontext(AVIOContext *ctx)