GstMfxEnc/Scl: Optimize upstream's buffer finding.