summaryrefslogtreecommitdiffstats
path: root/media/ffmpeg
diff options
context:
space:
mode:
Diffstat (limited to 'media/ffmpeg')
-rw-r--r--media/ffmpeg/file_protocol.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/ffmpeg/file_protocol.cc b/media/ffmpeg/file_protocol.cc
index 3acca44..d70a3dc 100644
--- a/media/ffmpeg/file_protocol.cc
+++ b/media/ffmpeg/file_protocol.cc
@@ -51,7 +51,11 @@ int ReadContext(URLContext* h, unsigned char* buf, int size) {
return HANDLE_EINTR(read(GetHandle(h), buf, size));
}
+#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(52, 68, 0)
+int WriteContext(URLContext* h, const unsigned char* buf, int size) {
+#else
int WriteContext(URLContext* h, unsigned char* buf, int size) {
+#endif
return HANDLE_EINTR(write(GetHandle(h), buf, size));
}