diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-03-21 22:17:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-03-21 22:17:56 +0000 |
commit | 4edfceccec5a4f5f62415904dd008a2ab23f5d83 (patch) | |
tree | dee3194dfaa7a2ead4cc6fba33f4b61816e1befd /libavformat/avio.h | |
parent | 48a5529016261c05e5e1b3c2e70a07fb1023109d (diff) | |
download | ffmpeg-streaming-4edfceccec5a4f5f62415904dd008a2ab23f5d83.zip ffmpeg-streaming-4edfceccec5a4f5f62415904dd008a2ab23f5d83.tar.gz |
Document get_*_buffer()
Originally committed as revision 12548 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index b9a4997..61459c5 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -260,7 +260,19 @@ char *url_fgets(ByteIOContext *s, char *buf, int buf_size); void put_flush_packet(ByteIOContext *s); + +/** + * Reads size bytes from ByteIOContext into buf. + * @returns number of bytes read or AVERROR + */ int get_buffer(ByteIOContext *s, unsigned char *buf, int size); + +/** + * Reads size bytes from ByteIOContext into buf. + * This reads at most 1 packet. If thats not enough fewer bytes will be + * returned. + * @returns number of bytes read or AVERROR + */ int get_partial_buffer(ByteIOContext *s, unsigned char *buf, int size); /** @note return 0 if EOF, so you cannot use it if EOF handling is |