diff options
author | wm4 <nfxjfg@googlemail.com> | 2014-09-30 18:46:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-30 21:31:08 +0200 |
commit | c8422f04a3256a9abc01588f1b4aa95f5aadc891 (patch) | |
tree | 06e19d02fbbb00bf9adc2e13168504604327c926 /libavformat/avio.h | |
parent | 07de0db74b56a5cb45039b58b6ff43ea5ffb90bc (diff) | |
download | ffmpeg-c8422f04a3256a9abc01588f1b4aa95f5aadc891.tar.gz |
avformat/aviobuf: fix avio_flush() for read streams
avio_flush() did nothing useful for read streams. Fix it to behave as
expected, and discard the currently read buffer properly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 2210c015a0..86f754e2fb 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -289,10 +289,14 @@ int url_feof(AVIOContext *s); int avio_printf(AVIOContext *s, const char *fmt, ...) av_printf_format(2, 3); /** - * Force flushing of buffered data to the output s. + * Force flushing of buffered data. * - * Force the buffered data to be immediately written to the output, + * For write streams, force the buffered data to be immediately written to the output, * without to wait to fill the internal buffer. + * + * For read streams, discard all currently buffered data, and advance the + * reported file position to that of the underlying stream. This does not + * read new data, and does not perform any seeks. */ void avio_flush(AVIOContext *s); |