aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-12-08 23:05:45 +0100
committerMarton Balint <cus@passwd.hu>2018-12-22 18:48:16 +0100
commitdfd656632e8980574dcae5c13a22c0872bc0ac75 (patch)
tree205b69514bc57f903c1097173e99f165c819997a
parentc1cbeb87db4bfc6e281e4254a6c7fdd3854fc9b9 (diff)
downloadffmpeg-dfd656632e8980574dcae5c13a22c0872bc0ac75.tar.gz
avformat/avio: fix avio_feof documentation
It has been this way too long to change behaviour, so let's change the docs instead. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/avio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 75912ce6be..dcb8dcdf93 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -236,7 +236,7 @@ typedef struct AVIOContext {
int (*write_packet)(void *opaque, uint8_t *buf, int buf_size);
int64_t (*seek)(void *opaque, int64_t offset, int whence);
int64_t pos; /**< position in the file of the current buffer */
- int eof_reached; /**< true if eof reached */
+ int eof_reached; /**< true if was unable to read due to error or eof */
int write_flag; /**< true if open for writing */
int max_packet_size;
unsigned long checksum;
@@ -566,8 +566,8 @@ static av_always_inline int64_t avio_tell(AVIOContext *s)
int64_t avio_size(AVIOContext *s);
/**
- * feof() equivalent for AVIOContext.
- * @return non zero if and only if end of file
+ * Similar to feof() but also returns nonzero on read errors.
+ * @return non zero if and only if at end of file or a read error happened when reading.
*/
int avio_feof(AVIOContext *s);