提交 608d0dee 编写于 作者: Z Zdenek Kabelac

* Also include time.h for nanosleep()

   by:  Philipp Matthias Hahn <pmhahn@titan.lahn.de>

Originally committed as revision 309 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 d6a4c0b1
......@@ -880,8 +880,9 @@ static int http_prepare_data(HTTPContext *c)
}
}
} else {
send_it:
av_write_packet(&c->fmt_ctx, &pkt);
send_it:
if (av_write_packet(&c->fmt_ctx, &pkt))
c->state = HTTPSTATE_SEND_DATA_TRAILER;
}
av_free_packet(&pkt);
......
......@@ -23,7 +23,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <time.h>
typedef struct {
int fd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册