Fix crash in some pdf

Has to be 3 and not nComps since it's a output buffer, a the input one
Bug 34357
1 file changed