summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-02 05:01:51 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-13 19:49:29 +0100
commit32ce3b71688aa797d9795e7aa0427df02a0da189 (patch)
tree30f227a548dabe358dd4c928078fc6c58fb13882 /libavcodec/h264dec.h
parent629259bdb58061b7b7c1ae4cdc44599f6c0bb050 (diff)
downloadffmpeg-32ce3b71688aa797d9795e7aa0427df02a0da189.tar.gz
avcodec/mpegutils.h: Move DELAYED_PIC_REF macro to h264dec.h
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>
Diffstat (limited to 'libavcodec/h264dec.h')
-rw-r--r--libavcodec/h264dec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index f18adda2d1..6ad2333419 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -138,6 +138,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;