[FFmpeg-devel] [PATCH] avformat/avio_internal: add av_warn_unused_result to ffio_ensure_seekback
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Nov 15 19:13:43 CET 2015
This will trigger a few warnings that need to be fixed, as this function
can return AVERROR(ENOMEM).
--------------------------------------------------------------
Inspired by a patch sent by Paul for the IVR demuxer.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavformat/avio_internal.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index ad50567..655f38a 100644
--- a/libavformat/avio_internal.h
+++ b/libavformat/avio_internal.h
@@ -102,6 +102,7 @@ int ffio_set_buf_size(AVIOContext *s, int buf_size);
* within the current pos and pos+buf_size is possible.
* Once the stream position moves outside this window this guarantee is lost.
*/
+av_warn_unused_result
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size);
int ffio_limit(AVIOContext *s, int size);
--
2.6.2
More information about the ffmpeg-devel
mailing list