diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-10-17 00:54:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-11-20 00:19:04 +0100 |
commit | 29f6c9b04d37305ec7b19cefdd4e4c71b1bdfe78 (patch) | |
tree | de8455acb0108a1c01b2b1b2576b867be0501b55 /libavcodec/h264dec.h | |
parent | e4337606e1bcc9869d5c3e6e234bc84e24afdc75 (diff) | |
download | ffmpeg-29f6c9b04d37305ec7b19cefdd4e4c71b1bdfe78.tar.gz |
avcodec/h264: keep track of which frames used gray references
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264dec.h')
-rw-r--r-- | libavcodec/h264dec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index ede5195172..366626c056 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -154,6 +154,8 @@ typedef struct H264Picture { /// RefStruct reference; its pointee is shared between decoding threads. atomic_int *decode_error_flags; + + int gray; } H264Picture; typedef struct H264Ref { @@ -567,6 +569,8 @@ typedef struct H264Context { struct FFRefStructPool *ref_index_pool; struct FFRefStructPool *decode_error_flags_pool; int ref2frm[MAX_SLICES][2][64]; ///< reference to frame number lists, used in the loop filter, the first 2 are for -2,-1 + + int non_gray; ///< Did we encounter a intra frame after a gray gap frame } H264Context; extern const uint16_t ff_h264_mb_sizes[4]; |