ffmpeg/libavcodec/vvc
Frank Plowman 0c517fcbe8 lavc/vvc: Fix emulation prevention byte handling
nal->skipped_bytes_pos contains the positions of errors relative to the
start of the slice header, whereas the position they were tested against
is relative to the start of the slice data, i.e. one byte after the end
of the slice header.

Patch fixes this by storing the size of the slice header in H266RawSlice
and adding it to the position given by the GetBitContext before
comparing to skipped_bytes_pos.  This fixes AVERROR_INVALIDDATAs for
various valid bitstreams, such as the LMCS_B_Dolby_2 conformance
bitstream.

Signed-off-by: Frank Plowman <post@frankplowman.com>
2024-01-27 11:29:40 -03:00
..
Makefile
vvc_cabac.c
vvc_cabac.h
vvc_ctu.c lavc/vvc: Use av_log2 when destination is integer 2024-01-26 15:47:41 -03:00
vvc_ctu.h avcodec/vvc_ctu: align motion vector fields 2024-01-23 17:24:15 -03:00
vvc_data.c
vvc_data.h
vvc_filter.c lavc/vvc: Remove left shifts of negative values 2024-01-23 11:17:05 -03:00
vvc_filter.h
vvc_filter_template.c
vvc_inter.c lavc/vvc: Remove left shifts of negative values 2024-01-23 11:17:05 -03:00
vvc_inter.h
vvc_inter_template.c lavc/vvc: Remove left shifts of negative values 2024-01-23 11:17:05 -03:00
vvc_intra.c
vvc_intra.h
vvc_intra_template.c lavc/vvc: Clamp shift RHS 2024-01-26 15:47:41 -03:00
vvc_itx_1d.c
vvc_itx_1d.h
vvc_mvs.c avcodec/vvc_mvs: remove an unnecessary AV_ZERO64() call 2024-01-24 12:41:01 -03:00
vvc_mvs.h
vvc_ps.c avcodec/vvc_ps: remove duplicated enum 2024-01-26 19:20:48 -03:00
vvc_ps.h
vvc_refs.c
vvc_refs.h
vvc_thread.c
vvc_thread.h
vvcdec.c lavc/vvc: Fix emulation prevention byte handling 2024-01-27 11:29:40 -03:00
vvcdec.h
vvcdsp.c
vvcdsp.h
vvcdsp_template.c