Browse Source

* 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
tags/v0.5
Zdenek Kabelac 24 years ago
parent
commit
608d0dee6f
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      ffserver.c
  2. +1
    -1
      libav/grab.c

+ 3
- 2
ffserver.c View File

@@ -880,8 +880,9 @@ static int http_prepare_data(HTTPContext *c)
} }
} }
} else { } 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); av_free_packet(&pkt);


+ 1
- 1
libav/grab.c View File

@@ -23,7 +23,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h>


typedef struct { typedef struct {
int fd; int fd;


Loading…
Cancel
Save