]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/bprint.h
Merge commit 'cf280ed004b5c618560f8f43d14ff264bd1e4c3d'
[ffmpeg] / libavutil / bprint.h
index 839ec1ec0d782b21a8f9c5f6bb49fa83f44322b1..1b23b9fe3c9e59668dad504fc20c7d042d2b126c 100644 (file)
@@ -213,4 +213,11 @@ int av_bprint_finalize(AVBPrint *buf, char **ret_str);
 void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars,
                       enum AVEscapeMode mode, int flags);
 
+/**
+ * Read contents of fd into print buffer up to EOF.
+ *
+ * @return 0 for success, error code otherwise
+ */
+int av_bprint_fd_contents(AVBPrint *pb, int fd);
+
 #endif /* AVUTIL_BPRINT_H */