Skip to content

Jpeg skip input raises - #1520

Merged
NicolasHug merged 1 commit into
meta-pytorch:mainfrom
NicolasHug:jpeg-skip-input-raises
Jul 18, 2026
Merged

Jpeg skip input raises#1520
NicolasHug merged 1 commit into
meta-pytorch:mainfrom
NicolasHug:jpeg-skip-input-raises

Conversation

@NicolasHug

@NicolasHug NicolasHug commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

We were returning a fake EOI when libjpeg asked to skip more bytes than we actually have. But that was inconsistent with the way the fill_input_buffer_cb callback (triggered when libjpeg finds it hasn't enough data), which was triggering an error. So we let this case trigger an error too. This path wasn't tested, and it still isn't. It's just for consistency.

@pytorch-bot

pytorch-bot Bot commented Jul 18, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1520

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 18, 2026
@NicolasHug
NicolasHug force-pushed the jpeg-skip-input-raises branch from c21e8a8 to 2d1ac77 Compare July 18, 2026 18:39
@NicolasHug
NicolasHug merged commit 46d8605 into meta-pytorch:main Jul 18, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant