]> git.sesse.net Git - ffmpeg/commitdiff
mpegvideo: Move OutFormat enum to mpegutils.h
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sun, 31 May 2015 13:49:55 +0000 (15:49 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 8 Jun 2015 11:39:42 +0000 (12:39 +0100)
It is necessary to avoid circular header dependencies.

libavcodec/h263dec.c
libavcodec/mpegutils.h
libavcodec/mpegvideo.h
libavcodec/rv10.c
libavcodec/wmv2.c

index 3d0d1dee266c9fb863164a31ba84550cedfdb1d3..5167e867ddbcb3cde2252ad04cd25eefbf0cf48d 100644 (file)
@@ -35,6 +35,7 @@
 #include "mpeg_er.h"
 #include "mpeg4video.h"
 #include "mpeg4video_parser.h"
+#include "mpegutils.h"
 #include "mpegvideo.h"
 #include "msmpeg4.h"
 #include "qpeldsp.h"
index 9446724f30ffa888d6beb9568aeb1b10cb0f3db8..5c503fb6009796d768880ceecf481d6f7d60a0f7 100644 (file)
 #define CANDIDATE_MB_TYPE_DIRECT0    (1 << 12)
 
 
+enum OutputFormat {
+    FMT_MPEG1,
+    FMT_H261,
+    FMT_H263,
+    FMT_MJPEG,
+};
+
+
 /**
  * Draw a horizontal band if supported.
  *
index b8740a27c0d9bff27d0dd8795e7457ca1357b1aa..d5e14f7c4624c5f3c7246a512e63a27ab55d3c7e 100644 (file)
@@ -46,6 +46,7 @@
 #include "put_bits.h"
 #include "ratecontrol.h"
 #include "parser.h"
+#include "mpegutils.h"
 #include "mpeg12data.h"
 #include "qpeldsp.h"
 #include "thread.h"
 
 #define FRAME_SKIPPED 100 ///< return value for header parsers if frame is not coded
 
-enum OutputFormat {
-    FMT_MPEG1,
-    FMT_H261,
-    FMT_H263,
-    FMT_MJPEG,
-};
-
 #define MAX_FCODE 7
 
 #define MAX_THREADS 16
index 52be052537bb6ea9dee97a3434086a47c6b4d23e..cf25b56141b0f77d23f4ac4313ddcabf1507375f 100644 (file)
@@ -34,6 +34,7 @@
 #include "h263.h"
 #include "internal.h"
 #include "mpeg_er.h"
+#include "mpegutils.h"
 #include "mpegvideo.h"
 #include "mpeg4video.h"
 #include "mpegvideodata.h"
index 7e0da935b54a113a819905d41d94682716bcac48..c9a382d405c7dd3f46535cffc4e1e852b774ed21 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "avcodec.h"
 #include "idctdsp.h"
+#include "mpegutils.h"
 #include "mpegvideo.h"
 #include "msmpeg4data.h"
 #include "simple_idct.h"