Skip to content

Fix film grain OBU desync when denoising a monochrome sequence - #5318

Open
xinzhao-apple wants to merge 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix
Open

Fix film grain OBU desync when denoising a monochrome sequence#5318
xinzhao-apple wants to merge 1 commit into
AOMediaCodec:mainfrom
xinzhao-apple:mr/avm-bugfix

Conversation

@xinzhao-apple

Copy link
Copy Markdown
Contributor

apply_denoise_2d() stored the noise model's grain parameters verbatim, but the model always estimates all three planes while write_fgm_obu() signals only luma when seq_params->monochrome is set. The chroma scaling points and AR coefficients were therefore written but never read back, leaving the bit reader offset so the following frame header parsed as garbage and the decoder reported "Corrupt frame detected".

Fix issue #5316.

apply_denoise_2d() stored the noise model's grain parameters verbatim, but
the model always estimates all three planes while write_fgm_obu() signals
only luma when seq_params->monochrome is set. The chroma scaling points and
AR coefficients were therefore written but never read back, leaving the bit
reader offset so the following frame header parsed as garbage and the
decoder reported "Corrupt frame detected".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants