fix webcam too just in case

This commit is contained in:
KingKDot
2026-05-21 21:26:55 -05:00
parent 3c3e20e079
commit 88c18ecc78
3 changed files with 84 additions and 1 deletions
@@ -135,7 +135,7 @@ func NowWebcam(ctx context.Context, env *rt.Env) error {
log.Printf("webcam: h264 skipped for odd dimensions (%dx%d), falling back to jpeg", w, h)
} else {
rgba := toRGBA(img)
if h264Bytes, err := encodeH264Frame(rgba); err == nil && len(h264Bytes) > 0 {
if h264Bytes, err := encodeH264FrameWebcam(rgba); err == nil && len(h264Bytes) > 0 {
frameBytes = h264Bytes
outFormat = "h264"
} else {