Skip to content

Support CRA random access decoding - #98

Merged
mpeg5 merged 2 commits into
masterfrom
cra_random_access
Sep 17, 2026
Merged

mpeg5 merged 2 commits into
masterfrom
cra_random_access

Conversation

@kpchoi

@kpchoi kpchoi commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

A CRA picture as the first picture of a stream (e.g. after seeking)
currently fails: picture buffer exhaustion in xevdm_picman_get_empty_pic()
because poc_next_output stays 0, and leading pictures referencing pictures
preceding the CRA.

Detect a CRA (non-IDR I slice) as the first picture, flush the DPB and start
output ordering from the CRA picture itself, and skip leading pictures
(POC < CRA POC) which cannot be decoded.

Signed-off-by: KP Choi <kpchoi@users.noreply.github.com>
Signed-off-by: KP Choi <kpchoi@users.noreply.github.com>

@mpeg5 mpeg5 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpeg5
mpeg5 merged commit 0570fcb into master Sep 17, 2026
3 checks passed
@mpeg5
mpeg5 deleted the cra_random_access branch September 17, 2026 04:44
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.

2 participants