avcodec/shorten: More complete pred_order check