diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-05-28 16:59:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-06-04 11:36:51 +0200 |
commit | 74159cbfc30a0202b3c3d6f770143d0e1c30fa5a (patch) | |
tree | 9b7f508066c00c2b5d37a9a329e4ac6cad4c873c /libavcodec/hevcdec.h | |
parent | a14440867c6059890ce34750d1aeba5f0f6fd57b (diff) | |
download | ffmpeg-74159cbfc30a0202b3c3d6f770143d0e1c30fa5a.tar.gz |
lavc/hevcdec: move handling of byte alignment at the end of slice header
Do it in hls_slice_header() rather than cabac_init_decoder() - the
former is a more logical place as according the spec the byte alignment
is a part of the slice header, not slice data. Avoids a second instance
of alignment handling in vaapi_hevc.
Also, check that alignment_bit_equal_to_one is, in fact, equal to one.
Diffstat (limited to 'libavcodec/hevcdec.h')
-rw-r--r-- | libavcodec/hevcdec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index 5aa3d40450..3824bf621b 100644 --- a/libavcodec/hevcdec.h +++ b/libavcodec/hevcdec.h @@ -277,6 +277,7 @@ typedef struct SliceHeader { int16_t chroma_offset_l1[16][2]; int slice_ctb_addr_rs; + unsigned data_offset; } SliceHeader; typedef struct CodingUnit { |