Skip to content

Return None for unset video codec pix_fmt#2333

Merged
WyattBlue merged 1 commit into
PyAV-Org:mainfrom
CarlosRDomin:fix/unset-video-codec-pix-fmt
Jun 30, 2026
Merged

Return None for unset video codec pix_fmt#2333
WyattBlue merged 1 commit into
PyAV-Org:mainfrom
CarlosRDomin:fix/unset-video-codec-pix-fmt

Conversation

@CarlosRDomin

Copy link
Copy Markdown
Contributor

Fixes a segfault when reading VideoCodecContext.pix_fmt before a video encoder has a pixel format configured.

Minimal repro:

import av

ctx = av.CodecContext.create("mpeg4", "w")
# ctx.<press Tab> segfaults on current main / 17.1.0
Signed-off-by: Carlos Domin <carlos.r.domin@gmail.com>
@WyattBlue WyattBlue merged commit f5f5f7b into PyAV-Org:main Jun 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants