Adjust ffmpeg/libav #includes to work with recent upstream changes

The <libavutil/avutil.h> stopped including <libavutil/common.h>
recursively in recent ffmpeg/libav git revisions. As a result, some
files no longer got needed definitions, causing a build failure.
Modify #include lines in various files to fix build with the latest
versions of ffmpeg/libav headers.
This commit is contained in:
Uoti Urpala 2012-08-15 23:23:02 +03:00 committed by wm4
parent a1380f3945
commit 009d9d8706
13 changed files with 27 additions and 17 deletions

3
bstr.c
View File

@ -17,11 +17,12 @@
*/
#include <string.h>
#include <libavutil/avutil.h>
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <libavutil/common.h>
#include "talloc.h"
#include "bstr.h"

View File

@ -28,6 +28,7 @@
#include <libavcodec/avcodec.h>
#include <libavutil/intreadwrite.h>
#include <libavutil/mem.h>
#include "config.h"
#include "af.h"

View File

@ -22,7 +22,7 @@
#include <assert.h>
#include <pthread.h>
#include <libavutil/avutil.h>
#include <libavutil/common.h>
#include <portaudio.h>
#include "config.h"

View File

@ -21,6 +21,8 @@
#include <string.h>
#include <assert.h>
#include <sys/types.h>
#include <libavutil/common.h>
#include <libavutil/mem.h>
#include "config.h"
@ -34,7 +36,6 @@
#include "vf.h"
#include "libvo/fastmemcpy.h"
#include "libavutil/mem.h"
extern const vf_info_t vf_info_vo;
extern const vf_info_t vf_info_rectangle;

View File

@ -21,6 +21,8 @@
#include <string.h>
#include <stdbool.h>
#include <libavutil/common.h>
#include "config.h"
#include "mp_msg.h"
#include "options.h"
@ -30,7 +32,6 @@
#include "vf.h"
#include "libvo/fastmemcpy.h"
#include "libavutil/avutil.h"
#include "m_option.h"
#include "m_struct.h"

View File

@ -24,6 +24,9 @@
#include <math.h>
#include <inttypes.h>
#include <libavutil/eval.h>
#include <libavutil/common.h>
#include "config.h"
#include "mp_msg.h"
@ -33,9 +36,6 @@
#include "mp_image.h"
#include "vf.h"
#include "libavcodec/avcodec.h"
#include "libavutil/eval.h"
struct vf_priv_s {
AVExpr * e[3];
int framenum;

View File

@ -33,13 +33,14 @@
#include <inttypes.h>
#include <math.h>
#include <libavutil/common.h>
#include "config.h"
#include "cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
#include "libavutil/avutil.h"
#include "ffmpeg_files/x86_cpu.h"
#include "m_option.h"

View File

@ -25,6 +25,7 @@
#include <inttypes.h>
#include <libavutil/eval.h>
#include <libavutil/mem.h>
#include "mp_msg.h"
#include "cpudetect.h"

View File

@ -24,14 +24,16 @@
#include <inttypes.h>
#include <assert.h>
#include <libavutil/mem.h>
#include <libavutil/common.h>
#include <libswscale/swscale.h>
#include "config.h"
#include "mp_msg.h"
#include "libavutil/avutil.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libswscale/swscale.h"
#include "vf_scale.h"

View File

@ -25,13 +25,14 @@
#include <math.h>
#include <assert.h>
#include <libavcodec/avcodec.h>
#include <libavutil/mem.h>
#include "config.h"
#include "mp_msg.h"
#include "cpudetect.h"
#include "libavcodec/avcodec.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"

View File

@ -29,7 +29,7 @@
#include <assert.h>
#include "config.h"
#include <libavutil/avutil.h>
#include <libavutil/common.h>
#ifdef CONFIG_LCMS2
#include <lcms2.h>

View File

@ -16,8 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
// Initial draft of my new cache system...
// Note it runs in 2 processes (using fork()), but doesn't require locking!!
// TODO: seeking, data consistency checking
@ -39,7 +37,10 @@
#include <unistd.h>
#include <errno.h>
#include "libavutil/avutil.h"
#include <libavutil/common.h>
#include "config.h"
#include "osdep/shmem.h"
#include "osdep/timer.h"
#if defined(__MINGW32__)

View File

@ -35,7 +35,7 @@
#include <string.h>
#include <math.h>
#include <libavutil/avutil.h>
#include <libavutil/common.h>
#include <libavutil/intreadwrite.h>
#include <libswscale/swscale.h>