libopusenc: prevent an out-of-bounds read by returning early