X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Flibrtmp.c;h=01b6c3deb01ae111986da0a6dca6f3674df973f7;hb=c3b6cc61e502b8df0d5bc6b9058dfc482a08d42a;hp=4ada91887f690a8239bba790b1e153168d760a47;hpb=d3b379b95b0da8e4d612a9a1987ba6fd8f2bd8bf;p=ffmpeg diff --git a/libavformat/librtmp.c b/libavformat/librtmp.c index 4ada91887f6..01b6c3deb01 100644 --- a/libavformat/librtmp.c +++ b/libavformat/librtmp.c @@ -24,6 +24,7 @@ * RTMP protocol based on http://rtmpdump.mplayerhq.hu/ librtmp */ +#include "libavutil/mathematics.h" #include "avformat.h" #include "url.h" @@ -94,7 +95,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) goto fail; } - if (flags & AVIO_WRONLY) + if (flags & AVIO_FLAG_WRITE) RTMP_EnableWrite(r); if (!RTMP_Connect(r, NULL) || !RTMP_ConnectStream(r, 0)) {