avcodec/exr: Fix mixed declarations and statements