[FFmpeg-cvslog] mpegvideo: Drop mpegvideo.h where not needed

Vittorio Giovara git at videolan.org
Wed Sep 16 11:29:10 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Sat Sep 12 16:11:05 2015 +0200| [e60a6e7545dd6f5b25e3a65de9c6fdcc6e2e9d6b] | committer: Vittorio Giovara

mpegvideo: Drop mpegvideo.h where not needed

Add necessary headers in .c files.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e60a6e7545dd6f5b25e3a65de9c6fdcc6e2e9d6b
---

 libavcodec/cavsdec.c        |    1 -
 libavcodec/dxva2.c          |    1 -
 libavcodec/dxva2_internal.h |    1 -
 libavcodec/dxva2_mpeg2.c    |    1 +
 libavcodec/libxvid.c        |    5 ++++-
 libavcodec/ljpegenc.c       |    1 -
 libavcodec/mdec.c           |    1 -
 libavcodec/vaapi.c          |    1 +
 libavcodec/vaapi_internal.h |    1 -
 libavcodec/vaapi_mpeg2.c    |    1 +
 libavcodec/vaapi_mpeg4.c    |    1 +
 11 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/libavcodec/cavsdec.c b/libavcodec/cavsdec.c
index 51b8878..a455a34 100644
--- a/libavcodec/cavsdec.c
+++ b/libavcodec/cavsdec.c
@@ -31,7 +31,6 @@
 #include "cavs.h"
 #include "internal.h"
 #include "mpeg12data.h"
-#include "mpegvideo.h"
 
 static const uint8_t mv_scan[4] = {
     MV_FWD_X0, MV_FWD_X1,
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index d4ac98d..6a7dd53 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -27,7 +27,6 @@
 #include "libavutil/time.h"
 
 #include "avcodec.h"
-#include "mpegvideo.h"
 #include "dxva2_internal.h"
 
 void *ff_dxva2_get_surface(const AVFrame *frame)
diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h
index 7155123..30aec8b 100644
--- a/libavcodec/dxva2_internal.h
+++ b/libavcodec/dxva2_internal.h
@@ -47,7 +47,6 @@
 #endif
 
 #include "avcodec.h"
-#include "mpegvideo.h"
 
 typedef void DECODER_BUFFER_DESC;
 
diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c
index 99a0787..62308b4 100644
--- a/libavcodec/dxva2_mpeg2.c
+++ b/libavcodec/dxva2_mpeg2.c
@@ -23,6 +23,7 @@
 #include "libavutil/log.h"
 #include "dxva2_internal.h"
 #include "mpegutils.h"
+#include "mpegvideo.h"
 
 #define MAX_SLICES 1024
 struct dxva2_picture_context {
diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 1ab8e56..4b24ca6 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -25,18 +25,21 @@
  * @author Adam Thayer (krevnik at comcast.net)
  */
 
+#include <stdio.h>
+#include <string.h>
 #include <unistd.h>
 #include <xvid.h>
 
 #include "libavutil/cpu.h"
+#include "libavutil/internal.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mathematics.h"
+#include "libavutil/opt.h"
 
 #include "avcodec.h"
 #include "internal.h"
 #include "libxvid.h"
 #include "mpegutils.h"
-#include "mpegvideo.h"
 
 /**
  * Buffer management macros.
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index 4e02e3c..41dba89 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -39,7 +39,6 @@
 #include "internal.h"
 #include "jpegtables.h"
 #include "mjpegenc_common.h"
-#include "mpegvideo.h"
 #include "mjpeg.h"
 #include "mjpegenc.h"
 
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index 83b83d0..39395e2 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -30,7 +30,6 @@
 #include "avcodec.h"
 #include "blockdsp.h"
 #include "idctdsp.h"
-#include "mpegvideo.h"
 #include "mpeg12.h"
 #include "thread.h"
 
diff --git a/libavcodec/vaapi.c b/libavcodec/vaapi.c
index aa90793..d00be2f 100644
--- a/libavcodec/vaapi.c
+++ b/libavcodec/vaapi.c
@@ -22,6 +22,7 @@
  */
 
 #include "h264.h"
+#include "mpegvideo.h"
 #include "vaapi_internal.h"
 
 /**
diff --git a/libavcodec/vaapi_internal.h b/libavcodec/vaapi_internal.h
index d0fa7ae..5e2a6ca 100644
--- a/libavcodec/vaapi_internal.h
+++ b/libavcodec/vaapi_internal.h
@@ -27,7 +27,6 @@
 #include <va/va.h>
 #include "vaapi.h"
 #include "avcodec.h"
-#include "mpegvideo.h"
 
 /**
  * @addtogroup VAAPI_Decoding
diff --git a/libavcodec/vaapi_mpeg2.c b/libavcodec/vaapi_mpeg2.c
index d41a14a..7d0e205 100644
--- a/libavcodec/vaapi_mpeg2.c
+++ b/libavcodec/vaapi_mpeg2.c
@@ -21,6 +21,7 @@
  */
 
 #include "mpegutils.h"
+#include "mpegvideo.h"
 #include "vaapi_internal.h"
 #include "internal.h"
 
diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
index 49d5f07..1b9053c 100644
--- a/libavcodec/vaapi_mpeg4.c
+++ b/libavcodec/vaapi_mpeg4.c
@@ -24,6 +24,7 @@
 #include "internal.h"
 #include "h263.h"
 #include "mpeg4video.h"
+#include "mpegvideo.h"
 
 /** Reconstruct bitstream intra_dc_vlc_thr */
 static int mpeg4_get_intra_dc_vlc_thr(Mpeg4DecContext *s)



More information about the ffmpeg-cvslog mailing list