* and Edouard Gomez <ed.gomez@free.fr>.
*/
-#include "avformat.h"
+#include "config.h"
+#include "libavformat/avformat.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#include <sys/mman.h>
#include <sys/time.h>
#define _LINUX_TIME_H 1
#include <time.h>
}
if (!ap || ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) {
- av_log(s1, AV_LOG_ERROR, "AVParameters don't have any video size. Use -s.\n");
+ av_log(s1, AV_LOG_ERROR, "AVParameters don't have video size and/or rate. Use -s and -r.\n");
return AVERROR(EIO);
}
/**
* Paints a mouse pointer in an X11 image.
*
- * @param image Image where to paint the mouse pointer
+ * @param image image to paint the mouse pointer to
* @param s context used to retrieve original grabbing rectangle
* coordinates
* @param x Mouse pointer coordinate
AVInputFormat x11_grab_device_demuxer =
{
"x11grab",
- "X11grab",
+ NULL_IF_CONFIG_SMALL("X11grab"),
sizeof(x11_grab_t),
NULL,
x11grab_read_header,