mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-05 20:42:10 -05:00
Define AVERROR for ffmpeg 0.4.8 & 0.4.9-pre1 and add a missing motion_log()
This commit is contained in:
15
ffmpeg.h
15
ffmpeg.h
@@ -4,8 +4,23 @@
|
||||
#ifdef HAVE_FFMPEG
|
||||
#include <errno.h>
|
||||
#include <avformat.h>
|
||||
|
||||
#ifndef AVERROR /* 0.4.8 & 0.4.9-pre1 */
|
||||
|
||||
#if EINVAL > 0
|
||||
#define AVERROR(e) (-(e))
|
||||
#define AVUNERROR(e) (-(e))
|
||||
#else
|
||||
/* Some platforms have E* and errno already negated. */
|
||||
#define AVERROR(e) (e)
|
||||
#define AVUNERROR(e) (e)
|
||||
#endif
|
||||
|
||||
#endif /* AVERROR */
|
||||
|
||||
#endif /* HAVE_FFMPEG */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user