avcodec/indeo5: Fix infinite loop in skip_hdr_extension()