diff mbox series

[FFmpeg-devel,71/72] avcodec/mpegutils.h: Move DELAYED_PIC_REF macro to h264dec.h

Message ID AM7PR03MB66607FA0065D86373CAF5A7D8F279@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 32ce3b71688aa797d9795e7aa0427df02a0da189
Headers show
Series [FFmpeg-devel,v2,01/69] avcodec/avcodec: Avoid MpegEncContext in AVHWAccel.decode_mb | expand

Commit Message

Andreas Rheinhardt Feb. 2, 2022, 6:01 a.m. UTC
It is only used by the H.264 decoder (as well as the dirac decoder,
which already uses a local copy).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/h264dec.h   | 5 +++++
 libavcodec/mpegutils.h | 6 ------
 2 files changed, 5 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index 8168c8e97b..2a06d9a092 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -139,6 +139,11 @@  typedef struct H264Picture {
     int mbaff;              ///< 1 -> MBAFF frame 0-> not MBAFF
     int field_picture;      ///< whether or not picture was encoded in separate fields
 
+/**
+ * H264Picture.reference has this flag set,
+ * when the picture is held for delayed output.
+ */
+#define DELAYED_PIC_REF  (1 << 2)
     int reference;
     int recovered;          ///< picture at IDR or recovery point + recovery count
     int invalid_gap;
diff --git a/libavcodec/mpegutils.h b/libavcodec/mpegutils.h
index 07705854b3..c92f9192db 100644
--- a/libavcodec/mpegutils.h
+++ b/libavcodec/mpegutils.h
@@ -37,12 +37,6 @@ 
 #define PICT_BOTTOM_FIELD  2
 #define PICT_FRAME         3
 
-/**
- * Value of Picture.reference when Picture is not a reference picture, but
- * is held for delayed output.
- */
-#define DELAYED_PIC_REF 4
-
 #define MAX_MB_BYTES    (30 * 16 * 16 * 3 / 8 + 120)
 #define MAX_FCODE        7