Skip to content

media/hevc_d: Do not reject slice header with bad ref_idx entries - #7620

Open
jc-kynesim wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
jc-kynesim:dev/6.18.y/fix_bad_idx_1
Open

media/hevc_d: Do not reject slice header with bad ref_idx entries#7620
jc-kynesim wants to merge 1 commit into
raspberrypi:rpi-6.18.yfrom
jc-kynesim:dev/6.18.y/fix_bad_idx_1

Conversation

@jc-kynesim

Copy link
Copy Markdown
Contributor

The previous patch to hevc_d checked that the entries in ref_idx were legal and rejected the slice header if not. Unfortunately gstreamer marks missing frames in this manner and expects decode to continue. Stop rejecting the header and produce a sanitized copy of ref_idx_lX that we use for the decode.

Tested with a hacked ffmpeg that corrupted the ref_idx_lX entries on a regular basis.

The previous patch to hevc_d checked that the entries in ref_idx
were legal and rejected the slice header if not. Unfortunately
gstreamer marks missing frames in this manner and expects decode
to continue. Stop rejecting the header and produce a sanitized
copy of ref_idx_lX that we use for the decode.

Signed-off-by: John Cox <jc@kynesim.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant