You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: libspeexenc: add supported sample rates and channel layouts. Replace usleep() calls with av_usleep() lavu: add av_usleep() function utvideo: mark interlaced frames as such utvideo: Fix interlaced prediction for RGB utvideo. cosmetics: do not use full path for local headers lavu/file: include unistd.h only when available configure: check for unistd.h log: include unistd.h only when needed lavf: include libavutil/time.h instead of redeclaring av_gettime() Conflicts: configure doc/APIchanges ffmpeg.c ffplay.c libavcodec/utvideo.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -24,11 +24,10 @@
|
||||
* RTMP HTTP protocol
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libavutil/avstring.h"
|
||||
#include "libavutil/intfloat.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/time.h"
|
||||
#include "internal.h"
|
||||
#include "http.h"
|
||||
|
||||
@@ -126,7 +125,7 @@ static int rtmp_http_read(URLContext *h, uint8_t *buf, int size)
|
||||
if (rt->nb_bytes_read == 0) {
|
||||
/* Wait 50ms before retrying to read a server reply in
|
||||
* order to reduce the number of idle requets. */
|
||||
usleep(50000);
|
||||
av_usleep(50000);
|
||||
}
|
||||
|
||||
if ((ret = rtmp_http_write(h, "", 1)) < 0)
|
||||
|
||||
Reference in New Issue
Block a user