Function FAVCModHW(clip clip) {

HExtra = (Height(clip)/2.0)-Floor(Height(clip)/2.0)
clip = HExtra==0.0 ? clip : Addborders(clip,0,0,0,1)

WExtra = (Width(clip)/4.0)-Floor(Width(clip)/4.0)
clip = WExtra==0.25 ? Addborders(clip,0,0,1,0) : clip
clip = WExtra==0.5 ? Addborders(clip,0,0,2,0) : clip
clip = WExtra==0.75 ? Addborders(clip,0,0,3,0) : clip

return(clip)
}

