I found time to do more investigating, and it turns out this bug is specific to JPEG. Recording frames as PNG works fine.
There’s a related developer issue which I’ve now added this information to. So I guess it doesn’t necessarily need a bug report, but it still wouldn’t hurt to make one either.